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.
Files changed (2) hide show
  1. package/dist/serve.js +1 -1
  2. 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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bun-plugin-stx",
3
3
  "type": "module",
4
- "version": "0.2.178",
4
+ "version": "0.2.179",
5
5
  "description": "A Bun plugin that allows for using Laravel Blade-like syntax.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",