Skip to content

Commit dda4090

Browse files
committed
Cache control header on location image
1 parent 7ad63d1 commit dda4090

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/base/location.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ pub fn location(request: Request) {
4646
stream
4747
.write_all(format!("Location: {snapshot_url}\r\n").as_bytes())
4848
.unwrap();
49+
stream.write_all(b"Cache-Control: no-cache, no-store, must-revalidate\r\n").unwrap();
4950
stream.write_all(b"Content-Length: 0\r\n").unwrap();
5051
stream.write_all(b"\r\n").unwrap();
5152
stream.flush().unwrap();

0 commit comments

Comments
 (0)