Jump to content
php.lv forumi

Problēma ar cache-control un expires


DZIEDI

Recommended Posts

Sveiki!

Tātad, problēma sekojoša, ir nodefinēti šādi php headeri:

header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
header("Content-type: text/html; charset=utf-8");
header("Expires: Thu, 19 Nov 1981 08:52:00 GMT");
header("Pragma: no-cache");

bet browseri turpina cachot.

Lūk ko parāda Google Chrome Developer Tool:

 

Cache-Control:public, max-age=10800

Connection:Keep-Alive

Content-Length:1566

Content-Type:text/html; charset=utf-8

Date:Wed, 25 Nov 2009 19:08:06 GMT

Expires:Wed, 25 Nov 2009 22:08:06 GMT

Keep-Alive:timeout=5, max=100

Last-Modified:Tue, 03 Nov 2009 16:07:19 GMT

Pragma:no-cache

Server:Apache/2.2.8 (Win32) PHP/5.2.6

X-Powered-By:PHP/5.2.6

 

Kāpēc atšķiras cache-control un expires? Lūdzu palīdziet.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...