| 423 | } |
| 424 | |
| 425 | CC_NOINLINE static void SetCachedTag(const cc_string* url, struct StringsBuffer* list, |
| 426 | const cc_string* data, const char* file) { |
| 427 | cc_string key; char keyBuffer[STRING_INT_CHARS]; |
| 428 | if (!data->length) return; |
| 429 | |
| 430 | String_InitArray(key, keyBuffer); |
| 431 | HashUrl(&key, url); |
| 432 | EntryList_Set(list, &key, data, ' '); |
| 433 | EntryList_Save(list, file); |
| 434 | } |
| 435 | |
| 436 | /* Updates cached data, ETag, and Last-Modified for the given URL */ |
| 437 | static void UpdateCache(struct HttpRequest* req) { |
no test coverage detected