0

On a GET XHR request, there are no Request Headers in the IE 11 console. The headers do exist in Chrome and Firefox.

How do I send headers with a GET request?

mvndaai
  • 3,453
  • 3
  • 30
  • 34

1 Answers1

1

When IE 11 caches a request there are no headers. I had to add a query param to the request (?d=${Date.Now()}) to ensure that the request was not being cached.

mvndaai
  • 3,453
  • 3
  • 30
  • 34
  • 1
    You can prevent caching on the API from the serverside, but the query param will probably catch nuances in IE that may not respect caching policies. – Modular May 22 '18 at 18:01
  • See this thread on other ways to fix the issue https://github.com/jhipster/generator-jhipster/issues/777 – mvndaai May 22 '18 at 18:36