This repository was archived by the owner on Dec 31, 2020. It is now read-only.

Description
When performing XHR requests within the first second* of a page refresh, some browsers will override the Cache-Control header for those requests.
In FF, max-age=0 is appended.
In Chrome, max-age=0 replaces whatever was set when building the XHR.
This makes it difficult to make tent requests that require proxy or no-proxy as their Cache-Control value during that critical time frame.
I suggest moving away from the Cache-Control header and either use a custom header (something like X-Tent-Cache-Control) or anything else that doesn't involve something the browsers could meddle with.
* : Approximately, depends on the browser and doesn't appear to be a constant.