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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Cache-Control headers are overriddenCache-Control headers are overridden
Previous
 
Next
New Post
1/22/2009 10:04 AM
 

For some reason the cache-control settings in "Host Settings" is being overridden. I have it set to "public" in DNN but these are the headers when accessing the site. You can see in the header that it shows "private".
Anyone know what can cause this?

HTTP/1.1 200 OK
Date: Thu, 22 Jan 2009 15:00:37 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: .ASPXANONYMOUS=57YSATSzyQEkAAAAYTY4MTgzYmItM2JhZC00NzJjLWFjMjAtZjNkYmE2NzAyN2U10; expires=Thu, 02-Apr-2009 01:40:29 GMT; path=/; HttpOnly
Set-Cookie: language=en-US; path=/; HttpOnly
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 259924
 

 
New Post
1/29/2009 11:47 AM
 


I've been playing around with the settings and I now see the public cache setting in the header.

But there is still a no cache header being attached to all the images and scripts. This is causing the items to be redownloaded on every request for every page causing some latency issues.

Here is an example of the headers from one of the images...

HTTP/1.1 200 OK
Cache-Control: public, no-cache
Content-Length: 430
Content-Type: image/gif
Last-Modified: Tue, 24 Oct 2006 19:26:12 GMT
Accept-Ranges: bytes
ETag: "022bf43a2f7c61:357"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Thu, 29 Jan 2009 15:47:16 GMT

 
New Post
1/29/2009 6:03 PM
Accepted Answer 

please take a look at it with http fiddler, you're likely to see different results e.g. the full headers will show that there is a "If-Modified-Since: Sun, 05 Jun 2005 03:13:00 GMT" value in the body, which matches the value in the header "Last-Modified: Sun, 05 Jun 2005 03:13:00 GMT", so the file doesn't get downloaded

GET /Portals/_default/Skins/DNN-Minimal/images/header-left.gif HTTP/1.1
Accept: */*
Referer: http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/-1/threadid/283097/scope/posts/Default.aspx
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
If-Modified-Since: Sun, 05 Jun 2005 03:13:00 GMT
If-None-Match: "086617a7c69c51:220b"
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.5.21022)
Connection: Keep-Alive
Host: www.dotnetnuke.com
Pragma: no-cache


HTTP/1.1 200 OK
Cache-Control: max-age=86400
Content-Length: 758
Content-Type: image/gif
Last-Modified: Sun, 05 Jun 2005 03:13:00 GMT
Accept-Ranges: bytes
ETag: "086617a7c69c51:103d"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Thu, 29 Jan 2009 22:59:57 GMT


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
1/29/2009 10:04 PM
 

By default, Cache-Control on static files is not handled by ASP.Net which in turn means they do not get processed by the DNN application.

You have to map the static files to ASP.Net in IIS, and then handle them with a Static File Handler like PageBlaster.

The Community Edition is free if you want to try it out.


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Cache-Control headers are overriddenCache-Control headers are overridden


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