Skip to content
Permalink
Browse files

[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 e9ced649ebc212cbb3e2d3485517d3fc3e3a1012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/main/java/org/jenkinsci/plugins/badge/StatusImage.java
@@ -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);

0 comments on commit e9ced64

Please sign in to comment.
You can’t perform that action at this time.