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
My organisation has two projects: one uses basePath in next.config.js and the other does not. I noticed that for the project using basePath, the default cache control header is not showing up for static pages. It shows up for the other project.
I narrowed the header setting down to this check here in fixCacheHeaderForHtmlPages(ref):
However, I'm not sure if this is the intended method or if there's a canonical way to treat base paths. If I could be pointed in the right direction, I'd be happy to submit a PR for this.
The text was updated successfully, but these errors were encountered:
My organisation has two projects: one uses
basePath
innext.config.js
and the other does not. I noticed that for the project usingbasePath
, the default cache control header is not showing up for static pages. It shows up for the other project.I narrowed the header setting down to this check here in
fixCacheHeaderForHtmlPages
(ref):If I patch the line to include the base path, then it works
However, I'm not sure if this is the intended method or if there's a canonical way to treat base paths. If I could be pointed in the right direction, I'd be happy to submit a PR for this.
The text was updated successfully, but these errors were encountered: