Skip to content

Commit

Permalink
Merge pull request #3 from iFixit/restrict-caching-with-max-age
Browse files Browse the repository at this point in the history
Use max-age=0 to restrict caching.
  • Loading branch information
jashkenas committed Nov 11, 2012
2 parents 1aa7a6d + 4406579 commit e4bf561
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pixel-ping.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
pixel = fs.readFileSync(__dirname + '/pixel.gif'); pixel = fs.readFileSync(__dirname + '/pixel.gif');


pixelHeaders = { pixelHeaders = {
'Cache-Control': 'private, no-cache, proxy-revalidate', 'Cache-Control': 'private, no-cache, proxy-revalidate, max-age=0',
'Content-Type': 'image/gif', 'Content-Type': 'image/gif',
'Content-Disposition': 'inline', 'Content-Disposition': 'inline',
'Content-Length': pixel.length 'Content-Length': pixel.length
Expand Down
2 changes: 1 addition & 1 deletion src/pixel-ping.coffee
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pixel = fs.readFileSync __dirname + '/pixel.gif'


# HTTP headers for the pixel image. # HTTP headers for the pixel image.
pixelHeaders = pixelHeaders =
'Cache-Control': 'private, no-cache, proxy-revalidate' 'Cache-Control': 'private, no-cache, proxy-revalidate, max-age=0'
'Content-Type': 'image/gif' 'Content-Type': 'image/gif'
'Content-Disposition': 'inline' 'Content-Disposition': 'inline'
'Content-Length': pixel.length 'Content-Length': pixel.length
Expand Down

0 comments on commit e4bf561

Please sign in to comment.