File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2525- Use the [ two-face] ( https://docs.rs/two-face ) crate for an extended syntax
2626 list.
2727- Serve all CSS assets under hashed URL to avoid caching issues and set
28- cache-control header to one month.
28+ cache-control header to one month and the ` immutable ` attribute .
2929- Do not offer any interactions for burn-after-reading pastes that will end up
3030 with a 404 anyway.
3131
Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ impl IntoResponse for Asset {
3434 let headers = (
3535 TypedHeader ( content_type_header) ,
3636 TypedHeader (
37- headers:: CacheControl :: new ( ) . with_max_age ( Duration :: from_secs ( 60 * 60 * 24 * 30 ) ) ,
37+ headers:: CacheControl :: new ( )
38+ . with_max_age ( Duration :: from_secs ( 60 * 60 * 24 * 30 ) )
39+ . with_immutable ( ) ,
3840 ) ,
3941 ) ;
4042
You can’t perform that action at this time.
0 commit comments