Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
cache meta tag question
I am experimenting with fusing the NeMe sites through several methods
- with a search javascript, the final part of which i am yet to resolve.
- A common sitemap which works just fine except that the content reloads without updating unless a meta no-cache is used.
The two meta tags I found on the net are
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Cache-Control" content="max-age=300" />
At the moment i am using
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="max-age=300" />
but I am sure that this is not right.
Does anyone here know the difference between the two and which one would be most appropriate and most compatible to use?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: cache meta tag question
further search increased my confusion
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: cache meta tag question
Hey colak, have you tried using PHP? Server-side is generally more reliable. This might work if you toss it at the top of your page (first thing).
<txp:php>
// http://www.sitepoint.com/article/php-anthology-2-5-caching
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE);
header('Pragma: no-cache');
</txp:php>
Last edited by jm (2008-01-20 08:35:00)
Offline
Re: cache meta tag question
Hi jm
That looks good!
I’m giving it a try just now!
Any advise you can give me re my other issue ?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Pages: 1