diff options
Diffstat (limited to 'server/respack_http')
-rw-r--r-- | server/respack_http/src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/respack_http/src/main.rs b/server/respack_http/src/main.rs index 967c3c4..6ffe631 100644 --- a/server/respack_http/src/main.rs +++ b/server/respack_http/src/main.rs @@ -66,6 +66,7 @@ fn handle_conn(conn: TcpStream, store: Arc<ResourceStore>) -> Result<()> { write!(conn_write, "HTTP/1.1 {code} OK\r\n")?; write!(conn_write, "content-type: {ty}\r\n")?; write!(conn_write, "server: write! macros\r\n")?; + write!(conn_write, "cache-control: public, max-age=604800, immutable\r\n")?; write!(conn_write, "content-length: {}\r\n", data.len())?; write!(conn_write, "\r\n")?; conn_write.write_all(&data)?; |