Browser caching across multiple subdomains impossible because of Vary: Origin response header for kit assets #2038
Unanswered
anthonyplopper
asked this question in
Ask For Help
Replies: 1 comment 6 replies
-
|
@KonnorRogers @robmadole @timcrowell do you folks see any issue removing the |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After the initial load, unique WebAwesome assets are cached within the browser so on subsequent loads they are loaded from the browser cache. In our case, this can save in the ballpark of ~100 requests totaling ~500kb, and the first load takes noticeably longer to render as all the assets are fetched for the first time.
We are using this kit across multiple subdomains, like subdomain.example.com and www.example.com, and users regularly move between the two. Unfortunately, as currently configured, the assets are unable to be re-used between the two subdomains, slowing down the initial load time considerably.
The header Vary: Origin instructs the browser to partition its cache by requesting origin. Wondering if there is a specific reason it has been set to Vary: Origin. If this header could be removed, our users load time could be improved significantly. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions