Explorar o código

Added Cache-Controle: private header.

Taddeus Kroes %!s(int64=14) %!d(string=hai) anos
pai
achega
63fce00c82
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/cache.py

+ 1 - 0
src/cache.py

@@ -155,6 +155,7 @@ class Cache:
         #try:
         web.http.modified(seconds_to_datetime(last_modified), self.etag())
         web.http.expires(timedelta(**self.expires))
+        web.header('Cache-Control', 'private')
 
         if not server_modified:
             # Concatenated content has not been loaded yet, read the cached