MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - ie not caching!

WebPagetest Forums

Full Version: ie not caching!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Test result in question :

The static objects are not being cached in internet explorer in spite of setting the correct headers.

Request Headers:

GET /images/flags/en.gif HTTP/1.1
Accept: */*
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; PTST 2.222)
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Cookie: PHPSESSID=b3fe67b447970830d9c723afbaaef30f; lang=en

Response Headers:

HTTP/1.1 200 OK
Date: Thu, 01 Jul 2010 16:32:44 GMT
Server: Apache/2.0.54
Last-Modified: Mon, 21 Jun 2010 22:39:10 GMT
Accept-Ranges: bytes
Content-Length: 260
Cache-Control: max-age=2592000, public
Expires: Sat, 31 Jul 2010 16:32:44 GMT
Keep-Alive: timeout=5, max=97
Connection: Keep-Alive
Content-Type: image/gif

It sets the desired cache-control and expired headers.... On firefox on repeat views it is not re-checking these files...

Any clues on what is messing up IE ?
That's really bizarre because even jQuery from Google isn't being cached. I checked in IE7 just to be sure it wasn't something specific to IE8 (or that test machine) either. This may take a bit longer to figure out.
My guess is that it is how you are delivering your base page, dropping the cookie and forcing it to re-load by sending back this header:

refresh: 0; url=

By forcing IE to refresh the page it will re-validate any cached assets. You'd be better off using a 302 redirect back to itself.
(07-02-2010 03:09 AM)pmeenan Wrote: [ -> ]refresh: 0; url=

Aha... it seems only IE is affected by this..... but refresh header shouldnt be there.... tried to fix it in php, but my php is so rusty i gave up.... was trying to get a friend sorted out with page speed things....
In your html source you mention you're looking for a php developer, is that a paid position?
No it isn't

buy generic viagra
buy cheap tadalafil
Reference URL's