This is a migrated thread and some comments may be shown as answers.

Scripts and Styles not caching

3 Answers 155 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
ColinBowern
Top achievements
Rank 1
ColinBowern asked on 31 Mar 2010, 03:54 PM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 02 Apr 2010, 10:23 AM
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.
0
John Costa
Top achievements
Rank 1
answered on 12 Sep 2019, 06:58 PM
Has this issue been resolved ?
We are still seeing it today with version:2016.3.1027.45
0
Rumen
Telerik team
answered on 17 Sep 2019, 10:39 AM
Hi John,

Yes, the problem should be fixed in the latest version. 

I performed a test with the Grid grouping live demo and noticed that the Telerik CDN scripts and CSS are cached as shown in the following screenshots:

Stylesheet CDN



Scripts CDN



Can you please make sure that the Telerik CDN is enabled? 

If the problem is other can you please provide a screenshot demonstrating the network resources in your Chrome DevTools and how to reproduce it?

Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ScriptManager and StyleSheetManager
Asked by
ColinBowern
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
John Costa
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or