Scripts and Styles not caching

2 posts, 1 answers
  1. ColinBowern
    ColinBowern avatar
    51 posts
    Member since:
    Aug 2012

    Posted 31 Mar 2010 Link to this post

    I am noticing that everything on my page is successfully caching except the calls to the RadScriptManager and RadStyleSheetManager resource handlers.   Here's an example of the firebug output from the style sheets:

    Last Modified   Wed Mar 31 2010 10:52:18 GMT-0400 (Eastern Daylight Time)
    Last Fetched   Wed Mar 31 2010 10:52:18 GMT-0400 (Eastern Daylight Time)
    Expires   Thu Mar 31 2011 10:51:28 GMT-0400 (Eastern Daylight Time)
    Data Size   11318
    Fetch Count   8
    Device   disk


    Response Headers
    Cache-Control   public, max-age=31535988
    Content-Type   application/x-javascript
    Content-Encoding   gzip
    Expires   Thu, 31 Mar 2011 14:51:29 GMT
    Vary   User-Agent
    Server   Microsoft-IIS/7.5
    X-AspNet-Version   2.0.50727
    X-Powered-By   ASP.NET
    Date   Wed, 31 Mar 2010 14:51:40 GMT
    Content-Length   11318

    Request Headers
    Host   localhost:81
    User-Agent   Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2) Gecko/20100105 Firefox/3.6
    Accept   text/css,*/*;q=0.1
    Accept-Language   en-ca,en;q=0.5
    Accept-Encoding   gzip,deflate
    Accept-Charset   ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive   115
    Connection   keep-alive
    Referer   http://localhost:81/
    Cookie   ASP.NET_SessionId=wyuncl55hepul5aai14evaqg
    Cache-Control   max-age=0

    Any thoughts on why it isn't caching?

    Thanks,
    Colin
  2. Answer
    T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 02 Apr 2010 Link to this post

    Hello Colin,

    I'm posting the reply to your support ticket for public reference.

    I can confirm this issue. The reason seems to be that we've stopped setting the Last-Modified header as part of a previous fix. This means that the browser can't send If-Modified-Since and "soft" refreshes will get 200 OK instead of 304 Not Modified.

    The good news is that the resources will be normally cached - only explicit Refresh commands will re-request them.

    We'll fix this right away. The fix will be available in the next internal build and in the upcoming service pack.

    All the best,
    Tsvetomir Tsonev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top