Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2013-04-25 13:45:03 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2013-04-25 13:45:03 (GMT)
commitf3947148cc191e47e2c631a78927789aaafe31ed (patch)
tree3ffebbeec18927c509518c6397907947dc6029cd
parentbcb977f7a764d34a34454fed0b03f6e890bbc4eb (diff)
Use tornado trick to cache preview images on the client
If you add the argument "v" StaticFileHandler will set the header to be cached on the client for ever. http://www.tornadoweb.org/en/stable/web.html?highlight=staticfilehandler#tornado.web.StaticFileHandler Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--web/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/index.html b/web/index.html
index ebc37fb..60b9911 100644
--- a/web/index.html
+++ b/web/index.html
@@ -23,7 +23,7 @@
for (var i = 0; i < selected.length; i++)
{
$('#journaltable').append("<tr>" +
- "<td><img src=/datastore/preview_id_" + selected[i].id + "></td>"+
+ "<td><img src='/datastore/preview_id_" + selected[i].id + "?v=x'></td>"+
"<td class='desc_td'>"+
"<table class='desc_table'>"+
"<tr><td class='title'>" + selected[i].title + "</td></tr>"+