I have an ajax call that reads a json file. When running on localhost the Last-Modified response header is populated with the file modified date.
When I run the same code and files on Azure the Last-Modified header is not returned at all. The only headers received are: Content-Encoding, Content-Type, Date, Request-Context, Transfer-Encoding, Vary.
How can I get the modified date from the ajax call? Below is the code I'm using to get the Last-Modified date.
lastModified=new Date(xhr.getResponseHeader('Last-Modified'));
Thanks.