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
We need to avoid default Vercel cache headers for json files: public, max-age=86400, immutable, this PR changes the cache control to public, max-age=0, must-revalidate to allow get a fresh status.json file on every i18n deployment change.
Since Vercel will send last-modified, using useFech will receive a 200 when updated and a 304 (not modified) when not changed and once at browser cache.
/lunaria/status.json not being updated without disabling cache at devtools
/lunaria/status.json with this PR and once in browser cache
A new route rule has been added to the Nuxt configuration for the path /lunaria/status.json. The route rule specifies Cache-Control response headers with the values public, max-age=0, must-revalidate. This configuration ensures that responses for this endpoint are marked as publicly cacheable but with a maximum age of zero seconds, requiring revalidation before each use. The change adds six lines to nuxt.config.ts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We need to avoid default Vercel cache headers for json files:
public, max-age=86400, immutable, this PR changes the cache control topublic, max-age=0, must-revalidateto allow get a freshstatus.jsonfile on every i18n deployment change.Since Vercel will send
last-modified, usinguseFechwill receive a 200 when updated and a 304 (not modified) when not changed and once at browser cache./lunaria/status.json not being updated without disabling cache at devtools

/lunaria/status.json with this PR and once in browser cache
