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...Performance and...Performance and...Exploiting the Browser CachingExploiting the Browser Caching
Previous
 
Next
New Post
8/29/2011 8:18 AM
 
I've been heavily influenced by this article - http://blog.httpwatch.com/2007/12/10/... 

The author suggests that when html pages call for images, css, and scripts, they should do so with a version number.  When I looked at the home page of www.DotNetNuke.com this morning, I noticed that the CSS files are linked using url's like...

href="/DesktopModules/CommunityDirectory/module.css?4537502"

Watching the http traffic with fiddler makes it clear that the files have long expiry dates and the browser avoids any kind of download cost for these files.

So now I am curious - this is not 'standard' default DNN behaviour.

Where do those numbers (4537502 and friends) come from? 

Is this behaviour configurable in late versions of DNN? 

Does it require an add on? 

I had been thinking of making (and contributing) a custom modification to the DNN source code, but it looks like it's been done already.


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
8/31/2011 1:04 PM
 
They are cache keys for the files and were added in 6.0. When a new release comes along if the file has changed the key will be different forcing the browser to accept the new files, if the files stay the same you retain the caching. Please note, we're doing some other performance related work in this area for 6.1.0 (I expect someone will blog about it soon) and hope to further boost performance.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/31/2011 3:31 PM
 
That sounds brilliant.  I love it already because it sounds completely automatic and I *LOVE* a free lunch.  Where do the numbers come from?  Are they some kind of hash of the file?

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
8/31/2011 7:35 PM
 
it's time based (ticks from a fixed date to the last write time)-take a look at RegisterStyleSheet in PageBase (note: you can force a refresh by adding using "refresh" in the path e.g install.css?refresh forces every install to use the new install.css file. Note: there may be changes to this model as we're doing some other work in this area currently.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Exploiting the Browser CachingExploiting the Browser Caching


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