wildpig 1.5.6 → 1.5.7
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 +1 -1
- package/scripts/prodServer.ts +3 -1
package/package.json
CHANGED
package/scripts/prodServer.ts
CHANGED
|
@@ -54,7 +54,9 @@ export const startServer = async () => {
|
|
|
54
54
|
return new Response(Bun.file(filepath));
|
|
55
55
|
}
|
|
56
56
|
// 文件不存在
|
|
57
|
-
return new Response("Not Found", {status: 404
|
|
57
|
+
return new Response("Not Found", {status: 404, headers: {
|
|
58
|
+
"Cache-Control": "public, max-age=864000" // 10 天缓存
|
|
59
|
+
}});
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
// 请求服务端数据
|