WebPagetest Forums
ie not caching! - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Discuss Test Results (/forumdisplay.php?fid=4)
+--- Thread: ie not caching! (/showthread.php?tid=286)



ie not caching! - sajal - 07-02-2010 02:46 AM

Test result in question : http://www.webpagetest.org/result/100701_TDP/

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

Code:
Request Headers:

GET /images/flags/en.gif HTTP/1.1
Accept: */*
Referer: http://www.paidtoreg.com/
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
Host: www.paidtoreg.com
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 ?


RE: ie not caching! - pmeenan - 07-02-2010 03:03 AM

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.


RE: ie not caching! - pmeenan - 07-02-2010 03:09 AM

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=http://www.paidtoreg.com/

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.


RE: ie not caching! - sajal - 07-02-2010 08:46 AM

(07-02-2010 03:09 AM)pmeenan Wrote:  refresh: 0; url=http://www.paidtoreg.com/

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....


RE: ie not caching! - jarrod1937 - 07-03-2010 12:30 AM

In your html source you mention you're looking for a php developer, is that a paid position?


RE: ie not caching! - Jarichonas - 07-07-2010 05:48 PM

No it isn't


---------------------------
buy generic viagra
buy cheap tadalafil