• Hi, I found this FAQ on plugin details:

    Why is nothing caching when I use PageSpeed?

    PageSpeed likes to put in Caching headers to say not to cache. To fix this, you need to put this in your .htaccess section for PageSpeed: ModPagespeedModifyCachingHeaders off

    Anyone could explain me better?

    If I normally use pagespeed, site is not served cached?

    To serve it cached (I want to test some improvements) should I simply set “ModPagespeedModifyCachingHeaders off” in my .htaccess ? Have I to enable any modules?
    Which are cons of disabling ModPagespeed ?

    Many thanks for your replies, I’m very curious about it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    PageSpeed, for reasons unknown to anyone sane, will modify your Cache-Control by default, telling browsers that the data is not cached, which in turn tells any proxy based cache system (nginx, varnish, etc) that the data is new.

    By doing so, the proxy cache will regenerate your cache and effectively never work.

    https://www.modpagespeed.com/doc/configuration#ModifyCachingHeaders

    Please note I am not saying to DISABLE modPageSpeed, just to tell it stop screwing with your cache control and let cache be cached.

    Thread Starter sunlight1976

    (@sunlight1976)

    Maybe I found the problem:
    Inside your plugin it says that varnish is working (Age is incrementing) but it is just because inside admin section cookies from Google Analytics are not set.
    My website puts GA cookies in every page, in this way if i understood how is varnish working.. pages with cookies are not delivered by varnish.

    correct?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PageSpeed in FAQ’ is closed to new replies.