Datuve :: Forums :: Arhīvs :: Problēma ar cache-control un expires

Datuve

Mana Datuve

Reģistrācija | Noteikumi | Paroles atjaunošana



Forums

Ieskaties


Raksti

Lietotāji online

Lietotāji online: 72

Reģistrētie lietotāji online: 0

Viesi online: 72

Datuve.lv video
Top.LV

Problēma ar cache-control un expires

Ievietoja: DZIEDI @ 2009.11.25 22:17  

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.

Komentāri:

#1 DZIEDI @ 2009.11.25 23:43

Pēc ilgiem un gariem eksperimentiem problēma atrisināta (bet ne izprasta). Bija skripts, kas liek session mainīgos glabāt mysql datu bāzē, kurš atradās pēc header sūtīšanas. Samainīju skriptus ar vietām un viss strādā.