Hi,
My webresource.axd aren't returning Http Status: 304 (pulled from client browser cache) and for the life of me I can't think why. They're returning 200, meaning reloading from server.
I've compiled in release mode and my compilation is set to debug="false". My browser is set to Automatically check for newer versions. I'm using ASP.NET AJAX and my ScriptResource.axd files ARE returning 304 status messages
I'm running IIS 6.0 on Windows 2003. I've looked at the traffic using Web Development Helper, Fiddler, and HTTP Analyzer 2 and it all says the same thing.
Here is a request to a ScriptResource
GET /PROPERTY/ScriptResource.axd?d=xXHyRhQ39AVIH62TuZ--7Aa3mhABc_C5l6w0tTMaZe8lpxj8SVqoV2GONWlzRgaGj37GYaRpmJ8sWmzDivv-kPXtcvxsbxdAGJn7gbJMzKc1&t=633126710456040000 HTTP/1.1
Here is the response.
(Status-Line):HTTP/1.1 304 Not Modified
Date:Thu, 28 Jun 2007 17:02:46 GMT
Server:Microsoft-IIS/6.0
X-Powered-By:ASP.NET
X-AspNet-Version:2.0.50727
Cache-Control:public
Expires:Fri, 27 Jun 2008 16:57:53 GMT
Last-Modified:Fri, 20 Apr 2007 17:04:05 GMT
Content-Length:0
Here is the request to my WebResource
GET /PROPERTY/WebResource.axd?d=HJejXre1kvmpIOcutOouIZyuttFxyblLItct1wcaEJ2NdriLTugm-uG3PDwrnDecKB64Fa9TxqsfMIKcFi5UCGSZlXHpZ4iRag8TtQ4PDjU1&t=633185426559430639 HTTP/1.1
Here is the response:
(Status-Line):HTTP/1.1 200 OK
Date:Thu, 28 Jun 2007 17:02:47 GMT
Server:Microsoft-IIS/6.0
X-Powered-By:ASP.NET
X-AspNet-Version:2.0.50727
Cache-Control:public
Expires:Fri, 27 Jun 2008 16:57:55 GMT
Content-Type:image/gif
Content-Length:43
The only difference I see is the "Last-Modified:Fri, 20 Apr 2007 17:04:05 GMT" header in the ScriptResource.axd response. Could this be the problem???
How on earth do I get my webresoruces to be cached? I know it's possible.
Thx, Joel