[Mod_gzip] Mod_gzip and Cache-Control No Cache
John Stephens
mod_gzip@lists.over.net
Thu, 13 Nov 2003 13:00:21 +0700
This is a multi-part message in MIME format.
------=_NextPart_000_0024_01C3A9E6.183FEA40
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Kevin
Thanks for the help. I got past the caching already but I do have =
another problem. My PHP page are being store in the Temporary Internet =
Files folder. Although I am using PHP, when I look in the temp I see the =
files but its in html format. I saw a couple of posts on this but no =
reply. =20
Basically i dont want m php pages being store in the users temp internet =
files folder. With modzip off, it works like a charm, wih it on, it =
stores it as html. Really strange.=20
Any suggestions would be extremely appreciated.=20
Thanks=20
John
----- Original Message -----=20
From: TOKILEY@aol.com=20
To: mod_gzip@lists.over.net=20
Cc: john@impaqads.com ; TOKILEY@aol.com=20
Sent: Thursday, November 13, 2003 12:32 PM
Subject: Re: [Mod_gzip] Mod_gzip and Cache-Control No Cache
Hi John...
This is Kevin Kiley...
Why not just add "Expires: -1" to the response header
for anything you don't want cached? ( PHP scripts only? ).
AFAIK there is no proxy cache on the planet that will
ever cache anything if it has "Expires: -1" on the
response. All the 'other' cache control directives
( especially the pragma stuff ) is 'iffy'. Sometimes
it functions as advertised, sometimes not. Depends
on the software.
If I recall... MSIE is famous for ignoring 'pragma: no-cache'
but "Expires: -1" works even with MSIE.
Later...
Kevin
In a message dated 11/12/2003 5:54:31 PM Central Standard Time, =
john@impaqads.com writes:
Hi Can Anyone please help me.
I recently upgraded apche and now have installed mod_gzip. Mod_gzip =
is working but for some reason the following headers are no longer =
working.
Header('Cache-Control: no-cache');
Header('Pragma: no-cache');
Header("P3P: CP=3DNOI NID CURa OUR NOR UNI");
When I turn off mod_gzip i can get them to work and my pages dont =
cache. What i basically want is to get mod_gzip working and my php =
scripts not to cache. Please help, i've tried everything and no can help =
me.
Regards
John=20
------=_NextPart_000_0024_01C3A9E6.183FEA40
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Kevin</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for the help. I got past =
the caching=20
already but I do have another problem. My PHP page are being store in =
the=20
Temporary Internet Files folder. Although I am using PHP, when I look in =
the=20
temp I see the files but its in html format. I saw a couple of posts on =
this but=20
no reply. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Basically i dont want m php pages being =
store in=20
the users temp internet files folder. With modzip off, it works =
like a=20
charm, wih it on, it stores it as html. Really strange. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Any suggestions would be extremely =
appreciated.=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>John</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3DTOKILEY@aol.com =
href=3D"mailto:TOKILEY@aol.com">TOKILEY@aol.com</A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dmod_gzip@lists.over.net=20
href=3D"mailto:mod_gzip@lists.over.net">mod_gzip@lists.over.net</A> =
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Cc:</B> <A =
title=3Djohn@impaqads.com=20
href=3D"mailto:john@impaqads.com">john@impaqads.com</A> ; <A=20
title=3DTOKILEY@aol.com =
href=3D"mailto:TOKILEY@aol.com">TOKILEY@aol.com</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, November 13, =
2003 12:32=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [Mod_gzip] =
Mod_gzip and=20
Cache-Control No Cache</DIV>
<DIV><BR></DIV><FONT face=3Darial,helvetica><FONT size=3D2><BR>Hi =
John...<BR>This=20
is Kevin Kiley...<BR><BR>Why not just add "Expires: -1" to the =
response=20
header<BR>for anything you don't want cached? ( PHP scripts only?=20
).<BR><BR>AFAIK there is no proxy cache on the planet that =
will<BR>ever cache=20
anything if it has "Expires: -1" on the<BR>response. All the 'other' =
cache=20
control directives<BR>( especially the pragma stuff ) is 'iffy'.=20
Sometimes<BR>it functions as advertised, sometimes not. Depends<BR>on =
the=20
software.<BR><BR>If I recall... MSIE is famous for ignoring 'pragma:=20
no-cache'<BR>but "Expires: -1" works even with=20
MSIE.<BR><BR>Later...<BR>Kevin<BR><BR>In a message dated 11/12/2003 =
5:54:31 PM=20
Central Standard Time, john@impaqads.com writes:<BR><BR><BR>
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px"=20
TYPE=3D"CITE">Hi Can Anyone please help me.</FONT><FONT lang=3D0=20
style=3D"BACKGROUND-COLOR: #ffffff" face=3DArial color=3D#000000 =
size=3D3=20
FAMILY=3D"SANSSERIF"><BR><BR></FONT><FONT lang=3D0=20
style=3D"BACKGROUND-COLOR: #ffffff" face=3DArial color=3D#000000 =
size=3D2=20
FAMILY=3D"SANSSERIF">I recently upgraded apche and now have =
installed=20
mod_gzip. Mod_gzip is working but for some reason the following =
headers are=20
no longer working.</FONT><FONT lang=3D0 style=3D"BACKGROUND-COLOR: =
#ffffff"=20
face=3DArial color=3D#000000 size=3D3 =
FAMILY=3D"SANSSERIF"><BR><BR></FONT><FONT=20
lang=3D0 style=3D"BACKGROUND-COLOR: #ffffff" face=3DArial =
color=3D#000000 size=3D2=20
FAMILY=3D"SANSSERIF">Header('Cache-Control: =
no-cache');<BR>Header('Pragma:=20
no-cache');<BR>Header("P3P: CP=3DNOI NID CURa OUR NOR =
UNI");</FONT><FONT=20
lang=3D0 style=3D"BACKGROUND-COLOR: #ffffff" face=3DArial =
color=3D#000000 size=3D3=20
FAMILY=3D"SANSSERIF"><BR><BR></FONT><FONT lang=3D0=20
style=3D"BACKGROUND-COLOR: #ffffff" face=3DArial color=3D#000000 =
size=3D2=20
FAMILY=3D"SANSSERIF">When I turn off mod_gzip i can get them to work =
and my=20
pages dont cache. What i basically want is to get mod_gzip =
working and=20
my php scripts not to cache. Please help, i've tried everything and =
no can=20
help me.</FONT><FONT lang=3D0 style=3D"BACKGROUND-COLOR: #ffffff" =
face=3DArial=20
color=3D#000000 size=3D3 FAMILY=3D"SANSSERIF"><BR><BR></FONT><FONT =
lang=3D0=20
style=3D"BACKGROUND-COLOR: #ffffff" face=3DArial color=3D#000000 =
size=3D2=20
FAMILY=3D"SANSSERIF">Regards</FONT><FONT lang=3D0=20
style=3D"BACKGROUND-COLOR: #ffffff" face=3DArial color=3D#000000 =
size=3D3=20
FAMILY=3D"SANSSERIF"><BR><BR></FONT><FONT lang=3D0=20
style=3D"BACKGROUND-COLOR: #ffffff" face=3DArial color=3D#000000 =
size=3D2=20
FAMILY=3D"SANSSERIF">John </FONT><FONT lang=3D0=20
style=3D"BACKGROUND-COLOR: #ffffff" face=3DArial color=3D#000000 =
size=3D3=20
FAMILY=3D"SANSSERIF"><BR><BR></BLOCKQUOTE><BR></FONT><FONT lang=3D0=20
style=3D"BACKGROUND-COLOR: #ffffff" face=3DArial color=3D#000000 =
size=3D2=20
FAMILY=3D"SANSSERIF"><BR></BLOCKQUOTE></FONT></FONT></BODY></HTML>
------=_NextPart_000_0024_01C3A9E6.183FEA40--