Why does IE11 send pragma: no-cache to the request header for ajax requests?

I am testing my webpage in IE11. I make some ajax calls and set the response headers as

Cache-Control: private, max-age=21600; 

Although each time making a request, IE11 sets the request header to Pragma:no-cache . Calling a request to receive from the source, although it must be present in the cache. \

Why does IE do this? Is there any way IE ignore this header?

Thanks.

+7
internet-explorer ajax internet-explorer-11
source share
2 answers

I traced this using Fiddler . This is a red herring . IE11 sends the praga:no-cache header when opening development tools.

If you press F12 and close the development tools, you will find that the no-cache header is not actually sent for every request. If you just open development tools, the no-cache header is sent.

You can check this with a violinist.
Hope this helps ...

+11
source share

You can disable this when the tools are open by unchecking:

IE Network Tools

+8
source share

All Articles