Also cache some security headers
This commit is contained in:
parent
4207a5b90e
commit
7dedaf8d77
@ -62,6 +62,12 @@ class PageCache
|
||||
if( res.headers[ "Content-Encoding" ] )
|
||||
c.headers[ "Content-Encoding" ] = res.headers[ "Content-Encoding" ];
|
||||
|
||||
if( res.headers[ "Content-Security-Policy" ] )
|
||||
c.headers[ "Content-Security-Policy" ] = res.headers[ "Content-Security-Policy" ];
|
||||
|
||||
if( res.headers[ "X-Frame-Options" ] )
|
||||
c.headers[ "X-Frame-Options" ] = res.headers[ "X-Frame-Options" ];
|
||||
|
||||
this.cache[ this.__encRes( res ) ][ key ] = c;
|
||||
Dragonfly.Debug( "StoreCache: \"" + key + "\", expire " + new Date( expires ) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user