Cache images, not html
-
I have a very active website that publishes multiple new posts daily. I need to ensure the latest is loaded when my visitors return. I think I need to disable the cacheing of HTML. However, I wish to continue to cache images/css/javascript for bandwidth purposes.
I came across the header code below, but it looks like it’s caching everything.
<meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" /> <meta http-equiv="pragma" content="no-cache" />Perhaps I need to add something into the .htacess?
Your help appreciated.
The topic ‘Cache images, not html’ is closed to new replies.