Title: Hyper-cache vs mod_pagespeed
Last modified: January 2, 2017

---

# Hyper-cache vs mod_pagespeed

 *  [moldrup](https://wordpress.org/support/users/moldrup/)
 * (@moldrup)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/hyper-cache-vs-mod_pagespeed/)
 * 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)

 *  [angophora](https://wordpress.org/support/users/angophora/)
 * (@angophora)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/hyper-cache-vs-mod_pagespeed/#post-8640578)
 * 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](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 9 years, 4 months ago by [angophora](https://wordpress.org/support/users/angophora/).
    -  This reply was modified 9 years, 4 months ago by [angophora](https://wordpress.org/support/users/angophora/).

Viewing 1 replies (of 1 total)

The topic ‘Hyper-cache vs mod_pagespeed’ is closed to new replies.

 * ![](https://ps.w.org/hyper-cache/assets/icon-256x256.png?rev=3452725)
 * [Hyper Cache](https://wordpress.org/plugins/hyper-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hyper-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hyper-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/hyper-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hyper-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hyper-cache/reviews/)

## Tags

 * [aws](https://wordpress.org/support/topic-tag/aws/)
 * [mod_pagespeed](https://wordpress.org/support/topic-tag/mod_pagespeed/)
 * [pagespeed](https://wordpress.org/support/topic-tag/pagespeed/)

 * 1 reply
 * 2 participants
 * Last reply from: [angophora](https://wordpress.org/support/users/angophora/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/hyper-cache-vs-mod_pagespeed/#post-8640578)
 * Status: not resolved