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 Jun 11, 2022. It is now read-only.
I am trying to set a header in static.json on ONLY my index.html file using:
headers: { "/": { "Cache-Control": "no-store" } }
The header works successfully when I specifically go to "https://mywebsite.com/"
But if I go to "https://mywebsite.com/sign-in", the header is not there. This is because /sign-in is not an actual file in my project. It is a route generated by React router.
I know I can use "/**" instead of "/" in static.json, but I don't want to add this header to my .css, .js, fonts etc.
Is there functionality available in static.json to apply headers to only the HTML file, no matter the route?
The text was updated successfully, but these errors were encountered:
I am trying to set a header in static.json on ONLY my index.html file using:
headers: { "/": { "Cache-Control": "no-store" } }
The header works successfully when I specifically go to "https://mywebsite.com/"
But if I go to "https://mywebsite.com/sign-in", the header is not there. This is because /sign-in is not an actual file in my project. It is a route generated by React router.
I know I can use "/**" instead of "/" in static.json, but I don't want to add this header to my .css, .js, fonts etc.
Is there functionality available in static.json to apply headers to only the HTML file, no matter the route?
The text was updated successfully, but these errors were encountered: