0

Is it possible to disable caching of aspx, ashx, and javascript files only on one particular app on the website, not for the website globally? Can it be done in the app's local web.config?

1 Answer 1

0

You can try to add the following into web.config:

<configuration>
  <location path="index.html">
    <system.webServer>
      <httpProtocol>
        <customHeaders>
          <add name="Cache-Control" value="no-cache" />
        </customHeaders>
      </httpProtocol>
     </system.webServer>
  </location>
</configuration>
Sign up to request clarification or add additional context in comments.

2 Comments

Does the location path limit the instructions nested below to have effect only on the index.html file?
You can test it, because it works fine here, but it is not universal.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.