Question

Problem when trying to fix Google Page Speed Leverage Browser Caching

  • Posted February 5, 2015

hi, I modified my .htaccess file to allow browser caching and then I get a a 500 server error with this in the log (ubuntu 14 installation)

[Thu Feb 05 03:54:37.736036 2015] [core:alert] [pid 25624] [client 58.10.145.197:42018] /var/www/.htaccess: ExpiresActive not allowed here

I see that other people have asked similar questions, but I can’t seem to find an answer that works.

Thanks.

Subscribe
Share

You need the apache module mod_expires. Run sudo a2enmod expires sudo a2enmod headers

From: https://www.digitalocean.com/community/tutorials/how-to-configure-apache-content-caching-on-ubuntu-14-04


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I am facing the same issue. Did you find a solution for this?