bun-plugin-stx 0.2.178 → 0.2.179
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/serve.js +1 -1
- package/package.json +1 -1
package/dist/serve.js
CHANGED
|
@@ -10243,7 +10243,7 @@ ${html}`;
|
|
|
10243
10243
|
const etag = `"${Bun.hash(content2).toString(16)}"`;
|
|
10244
10244
|
const headers = {
|
|
10245
10245
|
"Content-Type": "application/javascript; charset=utf-8",
|
|
10246
|
-
"Cache-Control": "public, max-age=0, must-revalidate",
|
|
10246
|
+
"Cache-Control": production ? "public, max-age=3600, stale-while-revalidate=86400" : "public, max-age=0, must-revalidate",
|
|
10247
10247
|
ETag: etag,
|
|
10248
10248
|
...corsHeaders
|
|
10249
10249
|
};
|
package/package.json
CHANGED