jskelet 0.4.5 → 0.4.6

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/CHANGELOG.md CHANGED
@@ -28,6 +28,10 @@ one is listed under a **Breaking** heading.
28
28
 
29
29
  ### Fixed
30
30
 
31
+ - Remote image optimizer cache hits no longer 404. Disk cache lives under
32
+ `.jskelet/image-cache/`; Express `sendFile` ignores dotfiles by default, so
33
+ the file was written but the response still failed. `sendCached` now passes
34
+ `dotfiles: "allow"`.
31
35
  - Cloudflare analytics in the cache panel no longer asks for an open-ended
32
36
  window. Queries used only `datetime_geq`, so Cloudflare closed the range at
33
37
  query time and a default 24h lookback became `1d` plus network delay — Free
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jskelet",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "A framework that feels like no framework: Express 5 + build-time .jsk (or EJS) SSR, vanilla JS islands, Tailwind v4 and an in-process HTML TTL cache.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -309,7 +309,8 @@ function sendCached(res, filePath, maxAge) {
309
309
  `public, max-age=${maxAge}, stale-while-revalidate=${Math.min(maxAge, 86400)}`,
310
310
  );
311
311
  res.setHeader("Vary", "Accept");
312
- res.sendFile(path.resolve(filePath));
312
+ // Cache dir is under .jskelet/; Express send ignores dotfiles by default.
313
+ res.sendFile(path.resolve(filePath), { dotfiles: "allow" });
313
314
  }
314
315
 
315
316
  /**