website caching

This commit is contained in:
Ben 2023-08-27 14:55:26 -04:00
parent 6b6b1ac6e1
commit 47e6f7e41b

View File

@ -151,6 +151,7 @@ static esp_err_t rest_common_get_handler(httpd_req_t *req)
}
else
{
httpd_resp_set_hdr(req, "Cache-Control", "max-age=2592000");
strlcat(filepath, req->uri, filePathLength);
}
set_content_type_from_file(req, filepath);