mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-04-11 21:39:16 +02:00
website caching
This commit is contained in:
parent
6b6b1ac6e1
commit
47e6f7e41b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user