[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 513
  • Last Modified:

Is web.config cached in your browser?

I know that sounds like a wierd question - but let me explain:

I posted an update to our website's web.config file to redirect any request for the homepage, to instead go to our blog, and the redirect worked fine:

      <location path="index.html">
                  <httpRedirect enabled="true" destination="blog" httpResponseStatus="Permanent" />

But when I removed that line from the web.config and reposted the web.config to the website, it still redirected me to the blog whenever I tried to visit the index.html page.


I sent a support ticket to our web host asking them what could possibly be going on, but they wrote back and told me that they were NOT being redirected. They instead suggested that I clear my browser's cache and try again. I cleared the cache and it worked! No more redirect.

So my question is - why did clearing my browser's cache get rid of the redirect? Is IE caching the web.config file? I know that sounds crazy, but at the moment I can't think of any other reason?
1 Solution
Dave BaldwinFixer of ProblemsCommented:
No, it is not caching 'web.config' but it will cache the last response to the request for that page.  You may have been able to access the page by pressing Ctl-F5 which is supposed to tell the browser to ignore the cache and fetch a new copy from the server.
käµfm³d 👽Commented:
Unless you did something you shouldn't have, web.config should never be served by the server. Can you imagine what a treasure trove of mischief it would be for a malicious user to get passwords to your database from an exposed web.config!?!?!
rascalAuthor Commented:
Thanks Dave!

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now