Repository navigation
Commit 1296e8d
[Agent: Claude] fix(lws): JSON-LD conversion arm gets a variant ETag; prediction keyed on the real negotiation surface (review JavaScriptSolidServer#5)
- predictFileEtag now runs its RDF branch unconditionally (was gated on
connegEnabled while the serving arm runs under connegEnabled||lwsEnabled)
- the JSON-LD conversion of a non-JSON-LD RDF source (e.g. a .ttl resource
read with Accept: application/ld+json) now gets a '-json' variant ETag —
previously it shared the bare stats ETag with the Turtle bytes, enabling
cross-variant 304 reuse (RFC 9110 §8.8.3 / LWS ETag MUST violation)
- own-format reads and existing quads-variant keys are unchanged (all prior
pins in test/lws-etag-variant.test.js stay green)
- extends test/lws-etag-variant.test.js with 5 new cases proving: -json
suffix on conversion, bare ETag + divergence on own-format, no cross-variant
304, same-variant 304 still works, and HEAD/GET ETag parity on both arms
Co-Authored-By: Claude Opus 4.8 <[email protected]>1 parent f0e3c4d commit 1296e8d
2 files changed
Lines changed: 57 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
252 | 259 | | |
253 | 260 | | |
254 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
255 | 265 | | |
256 | 266 | | |
257 | 267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
0 commit comments