My application has been set to cache its resources, but the file ig_WebGrid.xslt is never being cached, and is producing a big overhead. Because is being requested and downloaded several times.
Any idea why this happen?
I recommend using a tool like Fiddler to examine the HTTP response, and see what the cache header is set to for the XSLT file. My guess is that you need to configure your webserver to cache the xslt file type.
First of all, thanks for your fast answer.
I was analizing with fiddler the traffic of my website and that is how i saw that the file ig_WebGrid.xslt was being download several times. Actually is being downloaded 8 times, wich produces an overhead of about 100kb.
My WebServer is configured to cache all the files of the Folder Resources, and this file is in that folder.
This is the header of the request:
GET /WebTest/FinalDrop/Resources/Infragistics/Scripts/ig_WebGrid.xslt HTTP/1.1
Accept: */*
Referer: http://192.168.0.221/WebTest/FinalDrop/Site/Model/BalanceSheet/BalanceSheet.aspx
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)
Host: 192.168.0.221
Connection: Keep-Alive
Pragma: no-cache
Cookie: ASP.NET_SessionId=n2kjz245grsgxk45qeqmauzn
As you can see it says "Pragma: no-cache", and that is why it is not caching this files. Is there any way to avoid this?
Regards.-