nuxt-skew-protection 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1153,7 +1153,7 @@ export {}
|
|
|
1153
1153
|
for (const { route, seconds, source, fromMaxAgeAlone } of caching) {
|
|
1154
1154
|
if (seconds > ceiling)
|
|
1155
1155
|
logger.warn(`routeRules['${route}'] (${source}) caches a document for ${seconds}s. Retention only keeps a build for ${ceiling}s. The cached document will outlive its chunks. Lower the window to ${ceiling}s or less.`);
|
|
1156
|
-
if (fromMaxAgeAlone)
|
|
1156
|
+
if (fromMaxAgeAlone && options.cookie !== false)
|
|
1157
1157
|
logger.warn(`routeRules['${route}'] caches documents with \`max-age\` and no \`s-maxage\`. The version cookie is dropped there, so \`isClientOutdated\` falls back to the build id. Use \`s-maxage\` for CDN caching, or \`private\` if you meant browser caching only.`);
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|