nitropack-nightly 2.11.3-20250306-111821.d219707f → 2.11.3-20250306-120453.de0b4474
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/core/index.mjs
CHANGED
|
@@ -2445,7 +2445,7 @@ async function defaultHandler(error, event, opts) {
|
|
|
2445
2445
|
"content-security-policy": "script-src 'self' 'unsafe-inline'; object-src 'none'; base-uri 'self';"
|
|
2446
2446
|
};
|
|
2447
2447
|
if (statusCode === 404 || !getResponseHeader(event, "cache-control")) {
|
|
2448
|
-
headers["
|
|
2448
|
+
headers["cache-control"] = "no-cache";
|
|
2449
2449
|
}
|
|
2450
2450
|
const body = useJSON ? {
|
|
2451
2451
|
error: true,
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/meta/index.mjs
CHANGED
|
@@ -67,7 +67,7 @@ export async function defaultHandler(error, event, opts) {
|
|
|
67
67
|
"content-security-policy": "script-src 'self' 'unsafe-inline'; object-src 'none'; base-uri 'self';"
|
|
68
68
|
};
|
|
69
69
|
if (statusCode === 404 || !getResponseHeader(event, "cache-control")) {
|
|
70
|
-
headers["
|
|
70
|
+
headers["cache-control"] = "no-cache";
|
|
71
71
|
}
|
|
72
72
|
const body = useJSON ? {
|
|
73
73
|
error: true,
|
package/package.json
CHANGED