• Hi I’ve just installed WP Fastest Cache and I’m wondering what those three lines do and why do they exist in the .htacess file

    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires "Mon, 29 Oct 1923 20:30:00 GMT"

    The way I see it those lines shouldn’t be there but I guess I’m wrong so that’s why I’m asking.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Emre Vona

    (@emrevona)

    The rules are about ETag. If we don’t add it, gtmetrix (YSlow) warns about it.

    https://gtmetrix.com/configure-entity-tags-etags.html

    Thread Starter drazon

    (@drazon)

    Thank you for your answer.
    I think for the etags you need just

    FileETag None
    Header unset ETag

    I score 100% at Configure entity tags (ETags) without those three lines. My config is below

    <ifModule mod_headers.c>
    FileETag None
    Header unset ETag
    #Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    #Header set Pragma "no-cache"
    #Header set Expires "Mon, 29 Oct 1923 20:30:00 GMT"
    </ifModule>

    Yslow also recommends to “Add Expires headers”

    So is there any filter in the plugin I can use to change the output or perhaps provide a little bit more information regarding this?

    Plugin Author Emre Vona

    (@emrevona)

    You don’t get any warning about etag with single line ?? that’s nice but sometimes it warns for some pages so I added the lines.

    So is there any filter in the plugin I can use to change the output or perhaps provide a little bit more information regarding this?

    No, sorry.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘What are those three lines in htaccess?’ is closed to new replies.