Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-19 18:15:38

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

cache meta tag question

I am experimenting with fusing the NeMe sites through several methods

  1. with a search javascript, the final part of which i am yet to resolve.
  2. 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

#2 2008-01-20 07:59:26

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

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

#3 2008-01-20 08:33:59

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

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

#4 2008-01-20 08:52:13

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

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

Board footer

Powered by FluxBB