Skip to content

Commit

Permalink
chore(nuxt-ripple): update cache comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dylankelly authored May 21, 2024
1 parent 09e7638 commit 1c33736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt-ripple/server/plugins/cache-control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function defineNitroPlugin(def: NitroAppPlugin): NitroAppPlugin {
export default defineNitroPlugin(async (NitroApp) => {
NitroApp.hooks.hook('error', (error, { event }) => {
if (event && (error as any).statusCode === 404) {
// 404 responses are cached for 30s by reverse proxy to avoid load on origin, browsers should not cache and must revalidate
// 404 responses are cached for 5s by reverse proxy to avoid load on origin, browsers should not cache
setHeader(
event,
'cache-control',
Expand Down

0 comments on commit 1c33736

Please sign in to comment.