ESPAsyncWebServer icon indicating copy to clipboard operation
ESPAsyncWebServer copied to clipboard

set real "Last-Modified" header based on file's LastWrite time

Open vortigont opened this issue 2 years ago • 0 comments

Get file's LastWrite timestamp for file handlers (if supported by FS driver) and construct proper Last-Modified header. Works fine for LittleFS. If not supported by FS than fallback to previous implementation with manual setup for Last-Modified value. This way caching in browsers really works as it should be for any file updates on fs.

vortigont avatar Feb 02 '23 16:02 vortigont