Solved

I am seeing no-cache http header on every page served by my IIS 8.5 server (Windows 2012 R2)

Posted on 2016-10-10
4
20 Views
Last Modified: 2016-11-13
I have a web site hosted on Server2012 R2 and every page served has an HTTP Response header of "no-cache". I have set the "Common http response headers" in IIS to expire after 7 days and added a "Cache-Control max-age = 604800" NV pair to the http response headers, but I still see "no-cache" on every page.
Any clues ?
0
Comment
Question by:Serversys
  • 2
  • 2
4 Comments
 
LVL 23

Assisted Solution

by:Dr. Klahn
Dr. Klahn earned 250 total points (awarded by participants)
Comment Utility
There are apparently some issues with this going back to IIS 7 according to various commenters.

Have you looked at these resources already?

http://stackoverflow.com/questions/4204582/output-caching-still-adding-cache-controlno-cache-even-when-it-is-disabled

https://support.microsoft.com/en-us/kb/247404
0
 
LVL 26

Accepted Solution

by:
Dan McFadden earned 250 total points (awarded by participants)
Comment Utility
There is a chance that the response headers are being set in code.  Can you post a screen shot of your HTTP Response Header config for your site?

I would search thru a few files in the web site and check for something like the following:

<%response.CacheControl="no-cache"%>

Open in new window


Reference Link:  http://www.w3schools.com/asp/prop_cachecontrol.asp

Dan
0
 
LVL 26

Expert Comment

by:Dan McFadden
Comment Utility
Any additional info for this question?

Dan
0
 
LVL 23

Expert Comment

by:Dr. Klahn
Comment Utility
EE email requested stale question closure.  Two solutions proposed, no response.  Worth keeping in the archives for future reference.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A few customers have recently asked my thoughts on Password Managers.  As Security is a big part of our industry I was initially very hesitant and sceptical about giving a program all of my secret passwords.  But as I was getting asked about them mo…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now