Permalink
Browse files

Add Vary header as per RFC 2616 section 14.44 .

  • Loading branch information...
1 parent 53860a6 commit 64c34d98310eabbf50052bb2d42f4973d81e5c65 @cliffano cliffano committed Apr 6, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/assetmanager.js
View
@@ -388,7 +388,8 @@ module.exports = function assetManager (assets) {
'Last-Modified': response.modified,
'Date': (new Date).toUTCString(),
'Cache-Control': 'public,max-age=' + 31536000,
- 'Expires': response.expires || (new Date(new Date().getTime()+63113852000)).toUTCString()
+ 'Expires': response.expires || (new Date(new Date().getTime()+63113852000)).toUTCString(),
+ 'Vary': 'Accept-Encoding'
};
if(response.encoding) {

0 comments on commit 64c34d9

Please sign in to comment.