You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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
orno-proxy
as theirCache-Control
value during that critical time frame.I suggest moving away from the
Cache-Control
header and either use a custom header (something likeX-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.
The text was updated successfully, but these errors were encountered: