Muki Kiboigo
14e1f1bcf6
add clear fn to Cache and FsCache
2026-05-07 09:00:33 -07:00
Karl Seguin
2d20e57f80
Change all @import("...../log.zig") to const log = lp.log;
...
@import("lightpanda") where needed.
Would also like to do this for String, Page, Session and js which all stand out
as types that are use across the codebase.
I know that a few devs are doing this in new work and I haven't heard anyone
voice an objection.
2026-04-20 12:40:04 +08:00
Karl Seguin
3be913750e
Cache-Control is public by default
...
- If private isn't specified, default to public.
- Add some tests
- Optimize parsing by lower-casing once and switch to std.mem
2026-04-11 07:23:56 +08:00
Pierre Tachoire
a71ff521aa
cache: add debug log with no store reason
2026-04-03 07:23:32 -07:00
Muki Kiboigo
13ea4d1ee3
more expressive cache logging
2026-04-03 07:23:32 -07:00
Muki Kiboigo
3d760e4577
add format to CachedMetadata
2026-04-03 07:23:31 -07:00
Muki Kiboigo
a1a301666f
dupe url in tryCache
2026-04-03 07:23:31 -07:00
Muki Kiboigo
f098a991a8
remove cache revalidation stubs
2026-04-03 07:23:30 -07:00
Muki Kiboigo
7b5e4d6f52
add Vary support
2026-04-03 07:23:30 -07:00
Muki Kiboigo
6a57d69359
switch to single file cache
2026-04-03 07:23:30 -07:00
Muki Kiboigo
9c5e67fbf5
properly deinit cache
2026-04-03 07:23:30 -07:00
Muki Kiboigo
a60932bbe0
require timestamp passed in with cache request
2026-04-03 07:23:29 -07:00
Muki Kiboigo
609983da87
only store stuff when we know we will cache
2026-04-03 07:23:29 -07:00
Muki Kiboigo
65f77af84d
shortcircuit a lot of caching checks
2026-04-03 07:23:29 -07:00
Muki Kiboigo
557a4458a4
use CacheRequest instead of key
2026-04-03 07:23:28 -07:00
Muki Kiboigo
2de35a9db2
use arena_pool for cache get
2026-04-03 07:23:28 -07:00
Muki Kiboigo
5c2207ecc3
add more http caching rules
2026-04-03 07:23:27 -07:00
Muki Kiboigo
18d347e247
use CacheControl and Vary
2026-04-03 07:23:27 -07:00
Muki Kiboigo
29dfbbfdea
cache headers along with response
2026-04-03 07:23:27 -07:00
Muki Kiboigo
647d989191
use enum approach instead of vtable
2026-04-03 07:23:27 -07:00
Muki Kiboigo
2962864f3d
create Cache interface file
2026-04-03 07:22:20 -07:00