This question is locked. New answers and comments are not allowed.
I know this question has probably been answered but i could not seem to find it. I am running VS2008 and IIS7 and using the Script Registrar to reference a shared group I have defined in the web.config:
And called from the site.master:
When a page is rendered, the browser will serve a cached version of asset.axd?id=JSGroup when reached through clicking a link, but does not return a cached version when pressing F5. However, other JS and CSS files are returned from cache via a 304 when pressing F5. If I press Ctrl-f5, nothing is served from cache as one would expect, but just pressing F5 should return cached versions of the asset.axd files as well. Here are the headers returned for the asset.axd call:
I have debug set to false in the web.config. Is this an IIS7 issue? Has anyone experienced this issue before? I was thinking it had to do with the file extension but couldn't find a way to fix this. I've tried this from Firefox and IE but no dice.
Thanks!
<telerik> |
<webAssets> |
<scripts> |
<add name="JSGroup" combined="true" compress="true" enabled="true" version="1.0.0.0" cacheDurationInDays="10"> |
<items> |
<add source="~/subPathName/Scripts/file1.js"/> |
<add source="~/subPathName/Scripts/file2.js"/> |
</items> |
</add> |
</scripts> |
</webAssets> |
</telerik> |
And called from the site.master:
<% Html.Telerik().ScriptRegistrar() |
.AssetHandlerPath("~/subPathName/asset.axd") |
.Scripts(group => group.AddSharedGroup("JSGroup")) |
.jQuery(false); %> |
<asp:ContentPlaceHolder ID="JSContent" runat="server" /> |
<% Html.Telerik().ScriptRegistrar().Render();%> |
HTTP/1.1 200 OK |
Cache-Control public, must-revalidate, max-age=31536000 |
Content-Type application/x-javascript |
Content-Encoding gzip |
Expires Thu, 10 Mar 2011 01:45:11 GMT |
Last-Modified Wed, 10 Mar 2010 01:45:11 GMT |
Server Microsoft-IIS/7.0 |
X-AspNet-Version 2.0.50727 |
X-Powered-By ASP.NET |
Date Wed, 10 Mar 2010 01:45:11 GMT |
Content-Length 132452 |
Thanks!