Browse files

Merge pull request #3 from iFixit/restrict-caching-with-max-age

Use max-age=0 to restrict caching.
  • Loading branch information...
2 parents 1aa7a6d + 4406579 commit e4bf5618fc899803d35c77544dbd18e68b6a827e @jashkenas jashkenas committed Nov 11, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/pixel-ping.js
  2. +1 −1 src/pixel-ping.coffee
View
2 lib/pixel-ping.js
@@ -89,7 +89,7 @@
pixel = fs.readFileSync(__dirname + '/pixel.gif');
pixelHeaders = {
- 'Cache-Control': 'private, no-cache, proxy-revalidate',
+ 'Cache-Control': 'private, no-cache, proxy-revalidate, max-age=0',
'Content-Type': 'image/gif',
'Content-Disposition': 'inline',
'Content-Length': pixel.length
View
2 src/pixel-ping.coffee
@@ -81,7 +81,7 @@ pixel = fs.readFileSync __dirname + '/pixel.gif'
# HTTP headers for the pixel image.
pixelHeaders =
- 'Cache-Control': 'private, no-cache, proxy-revalidate'
+ 'Cache-Control': 'private, no-cache, proxy-revalidate, max-age=0'
'Content-Type': 'image/gif'
'Content-Disposition': 'inline'
'Content-Length': pixel.length

0 comments on commit e4bf561

Please sign in to comment.