Skip to content

Commit c4247cf

Browse files
committed
set cache for backup files to max (1 year)
1 parent e70378e commit c4247cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

otsserver/rpc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def get_backup(self):
8686

8787
self.send_response(200)
8888
self.send_header('Content-type', 'application/octet-stream')
89-
self.send_header('Cache-Control', 'public, max-age=10')
89+
self.send_header('Cache-Control', 'public, max-age=31536000')
9090
self.end_headers()
9191
self.wfile.write(result)
9292

0 commit comments

Comments
 (0)