mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-24 05:03:17 -05:00
Merge pull request #833 from chme/cache_control
[httpd] Force browsers to always revalidate their cache
This commit is contained in:
commit
cafdb96329
@ -301,7 +301,7 @@ httpd_request_etag_matches(struct evhttp_request *req, const char *etag)
|
||||
|
||||
// Add cache headers to allow client side caching
|
||||
output_headers = evhttp_request_get_output_headers(req);
|
||||
evhttp_add_header(output_headers, "Cache-Control", "private");
|
||||
evhttp_add_header(output_headers, "Cache-Control", "private no-cache");
|
||||
evhttp_add_header(output_headers, "ETag", etag);
|
||||
|
||||
return false;
|
||||
@ -337,7 +337,7 @@ httpd_request_not_modified_since(struct evhttp_request *req, const time_t *mtime
|
||||
|
||||
// Add cache headers to allow client side caching
|
||||
output_headers = evhttp_request_get_output_headers(req);
|
||||
evhttp_add_header(output_headers, "Cache-Control", "private");
|
||||
evhttp_add_header(output_headers, "Cache-Control", "private no-cache");
|
||||
evhttp_add_header(output_headers, "Last-Modified", last_modified);
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user