Commit Graph

5389 Commits

Author SHA1 Message Date
Pierre Tachoire
8ee88459ad cache: add debug log with no store reason 2026-04-03 09:56:39 +02:00
Muki Kiboigo
0da5482b90 better logging on FsCache init failure 2026-04-02 13:32:02 -07:00
Muki Kiboigo
84933296cb more expressive cache logging 2026-04-02 13:21:12 -07:00
Muki Kiboigo
3db4b0b61b move script queue log before request 2026-04-02 03:26:02 -07:00
Muki Kiboigo
d18acd5228 fix crashes on cached file from script manager 2026-04-02 02:37:04 -07:00
Muki Kiboigo
648af43f8a add format to CachedMetadata 2026-04-01 08:52:55 -07:00
Muki Kiboigo
ebb8c3f11c assign headers and vary headers before possible move 2026-04-01 08:52:47 -07:00
Muki Kiboigo
9214fba85e put in cache before releasing conn 2026-04-01 08:52:26 -07:00
Muki Kiboigo
d707a61646 dupe url in tryCache 2026-04-01 08:20:01 -07:00
Muki Kiboigo
600f2909fc update cacheDir config option 2026-04-01 08:16:21 -07:00
Muki Kiboigo
c02a966776 fix self.req.ctx in HttpClient 2026-04-01 06:04:01 -07:00
Muki Kiboigo
99112d75ff remove cache revalidation stubs 2026-04-01 06:04:01 -07:00
Muki Kiboigo
49b3a039cd add Vary support 2026-04-01 06:04:01 -07:00
Muki Kiboigo
7750125472 add more FsCache tests 2026-04-01 06:04:01 -07:00
Muki Kiboigo
e986878554 always close file on serveFromCache 2026-04-01 06:04:00 -07:00
Muki Kiboigo
f5d36c87cb better logging for cache 2026-04-01 06:04:00 -07:00
Muki Kiboigo
d288a63ebb switch to single file cache 2026-04-01 06:04:00 -07:00
Muki Kiboigo
501c523534 properly deinit cache 2026-04-01 06:04:00 -07:00
Muki Kiboigo
41f9e6521b use wyhash for power of two lock stripes 2026-04-01 06:04:00 -07:00
Muki Kiboigo
4632f241d2 require timestamp passed in with cache request 2026-04-01 06:04:00 -07:00
Muki Kiboigo
7ef024ba05 remove unused cache method on fs cache 2026-04-01 06:04:00 -07:00
Muki Kiboigo
917da08d5d add basic fs cache get/put test 2026-04-01 06:03:59 -07:00
Muki Kiboigo
6a090af250 check age on fs cache get 2026-04-01 06:03:59 -07:00
Muki Kiboigo
92996fe2d5 only store stuff when we know we will cache 2026-04-01 06:03:59 -07:00
Muki Kiboigo
2c7eba9d83 shortcircuit a lot of caching checks 2026-04-01 06:03:59 -07:00
Muki Kiboigo
cfb6eaa412 ensure fs cache file is closed after use 2026-04-01 06:03:59 -07:00
Muki Kiboigo
b26c35aa7e use CacheRequest instead of key 2026-04-01 06:03:59 -07:00
Muki Kiboigo
0a5a9f8012 add striped lock to FsCache 2026-04-01 06:03:59 -07:00
Muki Kiboigo
41cf6efe32 use arena_pool for cache get 2026-04-01 06:03:56 -07:00
Muki Kiboigo
81e23fd020 use writer for fs cache body file 2026-04-01 06:02:34 -07:00
Muki Kiboigo
983b2ab79d use json for fs cache metadata file 2026-04-01 06:02:33 -07:00
Muki Kiboigo
fe7583f931 use sha256 instead of wyhash 2026-04-01 06:02:33 -07:00
Muki Kiboigo
06b3351d97 store type_buf and sub_type_buf in Mime 2026-04-01 06:02:33 -07:00
Muki Kiboigo
43aa267324 add more http caching rules 2026-04-01 06:02:33 -07:00
Muki Kiboigo
69df3c69ae use CacheControl and Vary 2026-04-01 06:02:33 -07:00
Muki Kiboigo
6c81c670d8 cache headers along with response 2026-04-01 06:02:33 -07:00
Muki Kiboigo
b2972a7508 add basic caching support 2026-04-01 06:02:32 -07:00
Muki Kiboigo
a7fa575446 create cache owned by the network struct 2026-04-01 06:02:32 -07:00
Muki Kiboigo
1b6e9df68b use enum approach instead of vtable 2026-04-01 06:02:32 -07:00
Muki Kiboigo
5c545d94d7 add basic FsCache impl 2026-04-01 06:02:32 -07:00
Muki Kiboigo
65307c7a5d add CachedResponse variant to Response 2026-04-01 06:02:32 -07:00
Muki Kiboigo
f12d9b64a6 add headerIterator to Http Response 2026-04-01 06:02:32 -07:00
Muki Kiboigo
f6a27ecbc4 use Response instead of Transfer in callbacks 2026-04-01 06:02:30 -07:00
Muki Kiboigo
489c6e299f allow Mime parse to use []const u8 2026-04-01 06:00:41 -07:00
Muki Kiboigo
fc87bb849c add cache dir to configuration opts 2026-04-01 06:00:40 -07:00
Muki Kiboigo
98532cb5f3 create Cache interface file 2026-04-01 06:00:38 -07:00
Nikolay Govorov
e79da3a4ad Merge pull request #2064 from lightpanda-io/network_naming
Improve network naming consistency
2026-04-01 13:10:12 +01:00
Karl Seguin
145792c4f5 Merge pull request #2061 from lightpanda-io/ariaAtomic
Add Element.ariaAtomic and Element.ariaLive properties
2026-04-01 20:06:15 +08:00
Karl Seguin
0bb3e3827d Merge pull request #2060 from lightpanda-io/HTMLAnchorElement.rel
Add HTMLAnchorElement.rel property
2026-04-01 20:04:43 +08:00
Karl Seguin
6e6e6e6fad Merge pull request #2057 from lightpanda-io/element-title
Add HTMLElement.title property
2026-04-01 19:36:12 +08:00