mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-08-28 05:04:16 +00:00
Console: Disable browser caching of graphs
This commit is contained in:
@@ -55,8 +55,7 @@ if ( !rendered && ((rs != null) || fakeBw) ) {
|
||||
} else {
|
||||
response.setContentType("image/png");
|
||||
response.setHeader("Content-Disposition", "inline; filename=\"" + stat + ".png\"");
|
||||
// very brief 45 sec expire
|
||||
response.setDateHeader("Expires", ctx.clock().now() + (45*1000));
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.setHeader("Accept-Ranges", "none");
|
||||
// http://jira.codehaus.org/browse/JETTY-1346
|
||||
// This doesn't actually appear in the response, but it fixes the problem,
|
||||
|
||||
Reference in New Issue
Block a user