Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-17028] Merge pull request #6 from rozza/JENKINS-17028
Added Cache-Control: no-cache - refs
  • Loading branch information
olivergondza committed Apr 18, 2014
2 parents 76463a6 + 6a97c7f commit e9ced64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/jenkinsci/plugins/badge/StatusImage.java
Expand Up @@ -64,6 +64,7 @@ public void generateResponse(StaplerRequest req, StaplerResponse rsp, Object nod

rsp.setHeader("ETag",etag);
rsp.setHeader("Expires","Fri, 01 Jan 1984 00:00:00 GMT");
rsp.setHeader("Cache-Control", "no-cache, private");
rsp.setHeader("Content-Type", "image/png");
rsp.setHeader("Content-Length", length);
rsp.getOutputStream().write(payload);
Expand Down

0 comments on commit e9ced64

Please sign in to comment.