Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

http headers - how to change cache-control

how to change cache-control http headers for a whole website

3:02 pm on Jan 11, 2011 (gmt 0)

New User

10+ Year Member

joined:Oct 8, 2005
posts: 36
votes: 0

I have just installed mod_pagespeed on the server and have set the extend_cache option to enabled. In the instructions it says that I should set the http headers cache-control to expire in about 1 year.

I am not sure how to alter that setting, other than by adding a header tag in individual html pages and would like to know if there is a shortcut option to set the cache-control expiration date across websites on the server.

Currently when I view my webpages, the headers (using firefox live http headers addon) are showing
Cache-Control: max-age=0, no-cache, no-store

I thought maybe something in httpd.conf, and having googled to find an answer but I am not finding any information on how to do this. Does anyone have any information on altering the cache-control for websites on a server?
8:25 am on Jan 13, 2011 (gmt 0)


WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
votes: 10

Cache control in .htaccess:
http://www.webmasterworld.com/apache/4108533.htm [webmasterworld.com]