|
|
|
@ -202,7 +202,7 @@ async fn serve_file (
|
|
|
|
|
// slashdotting for us, but not so much that a low-traffic site would
|
|
|
|
|
// suffer from seeing stale data.
|
|
|
|
|
|
|
|
|
|
response.header ("cache-control".to_string (), b"no-cache,max-age=5".to_vec ());
|
|
|
|
|
response.header ("cache-control".to_string (), b"max-age=2".to_vec ());
|
|
|
|
|
if let Some (etag) = input.actual_etag {
|
|
|
|
|
response.header ("etag".to_string (), etag);
|
|
|
|
|
};
|
|
|
|
|