Improve ETag Caching

This also adds support for ETag caching for the settings pages
Also fixed some issues with the previous caching not being RFC 7232 compliant.
This commit is contained in:
Woody
2023-12-21 02:21:43 +01:00
parent bd20c83919
commit fd6ce57003
2 changed files with 94 additions and 104 deletions

View File

@@ -182,7 +182,7 @@ ${result}
const result = hexdump(buf);
const chunk = `
// Autogenerated from ${srcDir}/${s.file}, do not edit!!
const uint16_t ${s.name}_length = ${result.length};
const uint16_t ${s.name}_length = ${buf.length};
const uint8_t ${s.name}[] PROGMEM = {
${result}
};