Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set HTTP Expires Header in DotNetNuke?

How can I set the the HTTP Expires header in DotNetNuke generated pages?

like image 803
Kiwie Teoh Avatar asked Jun 13 '26 08:06

Kiwie Teoh


1 Answers

I have confirmed that this works on IIS 7 and DNN 5.6

  1. Open IIS Manager
  2. Click on the DNN website
  3. Double Click HTTP Response Headers
  4. Click (upper right) Set Common Headers
  5. Check the Checkbox "Expire Web Content"
  6. Enter your desired TTL
  7. Press OK
  8. Verify with Firebug

To verify that it is working:

  1. Open Firebug Net Tab
  2. Reload page
  3. Browse to any of the page resources
  4. Click the "+"
  5. Look for "Cache-Control no-cache"

Caching of Dynamic Content

DNN has internal caching for dynamic content. To adjust this, go into the host settings and turn off caching. That has nothing to do with HTTP Headers. Note: It's best to adjust caching at the module-level rather than host level. DNN is built to run with heavy caching. It can be lightning-fast if configured correctly, and very slow without caching.

like image 157
Brian Webster Avatar answered Jun 17 '26 23:06

Brian Webster



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!