@sveltejs/kit 2.5.19 → 2.5.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "2.5.19",
3
+ "version": "2.5.20",
4
4
  "description": "SvelteKit is the fastest way to build Svelte apps",
5
5
  "keywords": [
6
6
  "framework",
@@ -116,7 +116,10 @@ export async function respond(request, options, manifest, state) {
116
116
  }
117
117
 
118
118
  if (decoded.startsWith(`/${options.app_dir}`)) {
119
- return text('Not found', { status: 404 });
119
+ // Ensure that 404'd static assets are not cached - some adapters might apply caching by default
120
+ const headers = new Headers();
121
+ headers.set('cache-control', 'public, max-age=0, must-revalidate');
122
+ return text('Not found', { status: 404, headers });
120
123
  }
121
124
 
122
125
  const is_data_request = has_data_suffix(decoded);
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // generated during release, do not modify
2
2
 
3
3
  /** @type {string} */
4
- export const VERSION = '2.5.19';
4
+ export const VERSION = '2.5.20';