[Mod_gzip] Mod_gzip and Cache-Control No Cache
mod_gzip@lists.over.net
mod_gzip@lists.over.net
Thu, 13 Nov 2003 00:32:52 EST
--part1_90.3eed281b.2ce47184_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
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=NOI 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
>
>
--part1_90.3eed281b.2ce47184_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
<HTML><FONT FACE=3Darial,helvetica><FONT SIZE=3D2><BR>
Hi John...<BR>
This is Kevin Kiley...<BR>
<BR>
Why not just add "Expires: -1" to the response header<BR>
for anything you don't want cached? ( PHP scripts only? ).<BR>
<BR>
AFAIK there is no proxy cache on the planet that will<BR>
ever cache anything if it has "Expires: -1" on the<BR>
response. All the 'other' cache control directives<BR>
( especially the pragma stuff ) is 'iffy'. Sometimes<BR>
it functions as advertised, sometimes not. Depends<BR>
on the software.<BR>
<BR>
If I recall... MSIE is famous for ignoring 'pragma: no-cache'<BR>
but "Expires: -1" works even with MSIE.<BR>
<BR>
Later...<BR>
Kevin<BR>
<BR>
In a message dated 11/12/2003 5:54:31 PM Central Standard Time, john@impaqad=
s.com writes:<BR>
<BR>
<BR>
<BLOCKQUOTE TYPE=3DCITE style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT=
: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">Hi Can Anyone please help me.</=
FONT><FONT COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D3 F=
AMILY=3D"SANSSERIF" FACE=3D"Arial" LANG=3D"0"><BR>
<BR>
</FONT><FONT COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2=
FAMILY=3D"SANSSERIF" FACE=3D"Arial" LANG=3D"0">I recently upgraded apche an=
d now have installed mod_gzip. Mod_gzip is working but for some reason the f=
ollowing headers are no longer working.</FONT><FONT COLOR=3D"#000000" style=
=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D3 FAMILY=3D"SANSSERIF" FACE=3D"Arial"=20=
LANG=3D"0"><BR>
<BR>
</FONT><FONT COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2=
FAMILY=3D"SANSSERIF" FACE=3D"Arial" LANG=3D"0">Header('Cache-Control: no-ca=
che');<BR>
Header('Pragma: no-cache');<BR>
Header("P3P: CP=3DNOI NID CURa OUR NOR UNI");</FONT><FONT COLOR=3D"#000000"=
style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D3 FAMILY=3D"SANSSERIF" FACE=3D"A=
rial" LANG=3D"0"><BR>
<BR>
</FONT><FONT COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2=
FAMILY=3D"SANSSERIF" FACE=3D"Arial" LANG=3D"0">When I turn off mod_gzip i c=
an get them to work and my pages dont cache. What i basically want is=20=
to get mod_gzip working and my php scripts not to cache. Please help, i've t=
ried everything and no can help me.</FONT><FONT COLOR=3D"#000000" style=3D"=
BACKGROUND-COLOR: #ffffff" SIZE=3D3 FAMILY=3D"SANSSERIF" FACE=3D"Arial" LANG=
=3D"0"><BR>
<BR>
</FONT><FONT COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2=
FAMILY=3D"SANSSERIF" FACE=3D"Arial" LANG=3D"0">Regards</FONT><FONT COLOR=
=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D3 FAMILY=3D"SANSSERI=
F" FACE=3D"Arial" LANG=3D"0"><BR>
<BR>
</FONT><FONT COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2=
FAMILY=3D"SANSSERIF" FACE=3D"Arial" LANG=3D"0">John </FONT><FONT COLOR=3D"=
#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D3 FAMILY=3D"SANSSERIF" F=
ACE=3D"Arial" LANG=3D"0"><BR>
<BR>
</BLOCKQUOTE><BR>
</FONT><FONT COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2=
FAMILY=3D"SANSSERIF" FACE=3D"Arial" LANG=3D"0"><BR>
</FONT></HTML>
--part1_90.3eed281b.2ce47184_boundary--