Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to force clients to reload skin.css?  Client Caching ProblemHow to force clients to reload skin.css? Client Caching Problem
Previous
 
Next
New Post
10/15/2010 7:41 PM
 
Sometimes when I make changes to my skin, visitors to the site who have visitors to the site are seeing the old skin.css file.

The common way to resolve this is put a version number in the url to a css file. Example: skin.css?ver=1.12

However, I do not see any way to do this with DNN (I'm not using the source version and have no desire to edit the core of DNN).

I'm using IIS 7 and DNN 5.4 with moderate caching.

I have confirmed the problem persists no matter the cache setting.

I have also confirmed that the problem can be resolved on the client side with a hard-refresh (Ctrl-F5 in Firefox), but I can't exactly ask my customers to do this when they visit the site.

I need to somehow tell the browser clients that they need to reload the css files for the site.

Is there some way to do this?

Thanks!
 
New Post
10/15/2010 8:33 PM
 
It is a problem all sides have.  The Browsers saved the site in the client temp folder like a proxy.  There is no way to start a hard refresh of the page with clientpostback.  If a ueser didn't unload/delete the files closing the browser leaves the files localy on the client system.

 
New Post
10/15/2010 8:33 PM
 
It is a problem all sides have.  The Browsers saved the site in the client temp folder like a proxy.  There is no way to start a hard refresh of the page with clientpostback.  If a ueser didn't unload/delete the files closing the browser leaves the files localy on the client system.

 
New Post
10/15/2010 11:56 PM
 
The solution is to browse to the skin files in CSS, switch to features view, go to HTTP Headers, Add an expiration of 1 second to your skin.css and other .css files that might change. Keep the 1 second expiration during development. Then, when the development of the site is complete, set those expiration headers to be much higher.. 1 week perhaps. Be careful with this though, if you might have to make changes, customers' browsers won't load the new file for a long time if you expiration value is too high.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to force clients to reload skin.css?  Client Caching ProblemHow to force clients to reload skin.css? Client Caching Problem


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out