Explorar el Código

Added Cache-Controle: private header.

Taddeus Kroes hace 14 años
padre
commit
63fce00c82
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/cache.py

+ 1 - 0
src/cache.py

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