Ultrashock Forums > Development > Server Side
PHP - GZIP, Cache, Internet Explorer

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
PHP - GZIP, Cache, Internet Explorer
Old 2008-06-18

I have just discovered a little problem with IE. No surprise there.

If I send headers to prevent a file (htm, css, js, etc) from being cached, and that file is compressed (gzip), IE will still cache the file. I guess this is because IE is stupid and can't deal with the decompression unless it writes the file to the cache.

These are the headers I am currently sending out:

expires "Thu, 01 Jan 1970 00:00:00 GMT"
pragma "no-cache"
cache-control "no-store, no-cache, must-revalidate"
content-encoding "gzip"
content-transfer-encoding "binary"
content-length ---


Does anyone know of a workaround that doesn't involve checking the user agent string and sending uncompressed files to IE?

postbit arrow 1 comment | 1685 views postbit arrow Reply: with Quote   
Coffee Monster
Nutrox is offline Super Moderator
seperator
Posts: 12,125
2004-04-25
Age: 32
Nutrox lives in United Kingdom
17
Nutrox's Avatar
seperator

Ultrashock Member Comments:
Stefan1 Stefan1 is offline Stefan1 lives in Germany 2008-07-28 #2 Old  
Hey,

this is a know problem of IE 5.5 and IE 6. Microsoft provides a hotfix for this issue, but that might not help you out:

http://support.microsoft.com/?scid=k...1722&x=10&y=13

Have you tried "last-modified"?

Stefan
Reply With Quote  
Thread Tools
Display Modes Rate This Thread
Rate This Thread: