minimalistic-server 0.0.35 → 0.0.36

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/index.mjs +5 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2247,6 +2247,11 @@ function invalidateStaticCache(path = null, clear = true) {
2247
2247
  }
2248
2248
  } else {
2249
2249
  path = `${path}`.split('/').filter(x => x).join('/');
2250
+
2251
+ if (!clear && !staticCache.has(path)) {
2252
+ staticCache.set(path, new FileResponse(path));
2253
+ }
2254
+
2250
2255
  staticCache.get(path)?.block();
2251
2256
 
2252
2257
  if (clear) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minimalistic-server",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "engines" : {
5
5
  "npm" : ">=8.6.0",
6
6
  "node" : ">=22.0.0"