• Hi all,

    I’ve installed the newest WP 4.7, and Hypercache 3.2.6 on a server with LAMP and mod_pagespeed. Server is an AWS EC2 Amazon-linux installation.
    However I cannot get mod_pagespeed to optimize the pages when they are cached by Hyper-cache.

    It works perfectly when Hypercache is uninstalled/disabled, and if I redirect the browser directly to the cached html-file (ie. /wp-content/cache/../index.html) then mod_pagespeed also works.

    I’ve NOT used compression in Hypercache, as recommended. Only default settings has been used.

    Have anyone gotten Hypercache and mod_pagespeed to work together?
    Do you have any idea, what the problem could be?
    I can provide additional information, if needed.

Viewing 1 replies (of 1 total)
  • Hi, does the bottom of the page not have the hypercache HTML comment? (e.g. <!– hyper cache 2017-01-11 03:50:16 –>)

    If the issue is the Cache-Control header, in the mod_pagespeed configuration file (e.g. /etc/apache2/mods-available/pagespeed.conf) add the line:

    ModPagespeedModifyCachingHeaders off

    (And restart Apache.) This will let Hyper Cache set the browser caching time on the cached HTML. See docs:

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

    I did have an issue where Hyper Cache seemed to have prevented mod_pagespeed from converting images to .webp format but that seems to have gone away… I suppose a fairly minimal setting in Hyper Cache is better.

    There may be some other interactions but those are the ones I have run into so far ??

    • This reply was modified 8 years, 2 months ago by angophora.
    • This reply was modified 8 years, 2 months ago by angophora.
Viewing 1 replies (of 1 total)
  • The topic ‘Hyper-cache vs mod_pagespeed’ is closed to new replies.