You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 21, 2025. It is now read-only.
set real "Last-Modified" header based on file's LastWrite time
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 value for "Last-Modified".
an example code to serve static files from LittleFS with IMS revalidation
```
// serve all static files from LittleFS root /
server.serveStatic("/", LittleFS, "/")
.setDefaultFile("index.html")
.setCacheControl("must-revalidate"); // revalidate based on etag/IMS headers
```
Signed-off-by: Emil Muratov <[email protected]>
0 commit comments