• Resolved Will Stocks

    (@willstockstech)


    Hey Frank
    How does Autoptimize handle SSI’s exactly?
    If I choose to strip comments from HTML, does that also then strip the SSI’s and therefore potentially prevent them from working?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    never tried to combine SSI’s with PHP, but I guess SSI’s could be stripped out that way. you could embed them in “noptimize”-tags maybe?

    Thread Starter Will Stocks

    (@willstockstech)

    OK, cool – I’ll give that a whirl!
    Currently I have:

    <!--#if expr="$HTTP_COOKIE=/fontsloaded\=true/" -->
    <html lang="en" class="fonts-loaded">
    <!--#else -->
    <html lang="en">
    <!--#endif -->
    

    If I just switch that out for:

    <!–noptimize–>
    <!--#if expr="$HTTP_COOKIE=/fontsloaded\=true/" -->
    <html lang="en" class="fonts-loaded">
    <!--#else -->
    <html lang="en">
    <!--#endif -->
    <!–/noptimize–>
    

    You reckon that’ll play ball?

    • This reply was modified 5 years, 6 months ago by Will Stocks.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    yep, should work, but do make sure the noptimize tags have are <!--noptimize--> instead of <!–noptimize–> (same issue with closing tags) 🙂

    Thread Starter Will Stocks

    (@willstockstech)

    Brilliant!!
    Ah, will do! Might want to update the FAQs, as I copied and pasted from there 😉 That or there’s some weird copy and paste formatting going on!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    argh .. afraid that’s a problem with the readme-parsing at wordpress.org. the original readme.txt does contain two dashes; http://plugins.svn.wordpress.org/autoptimize/trunk/readme.txt 🙂

    Thread Starter Will Stocks

    (@willstockstech)

    Have you tried using the ol’ &mdash; or &ndash;? Might parse correctly then? 😊

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    great idea! made it & #045; (without the space obviously) though, seems to work 🙂

    Thread Starter Will Stocks

    (@willstockstech)

    Wahoo!
    Ok, on that note, I’ll get my site updated with the right tag! 😊
    Thanks again Frank!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome Will 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Server Side Includes’ is closed to new replies.