diff options
author | Magnus Hagander | 2014-01-01 14:24:51 +0000 |
---|---|---|
committer | Magnus Hagander | 2014-01-01 14:24:51 +0000 |
commit | 48410d04fa98d79a6eb960b8e9649e900f14700d (patch) | |
tree | 8cf09d5c5b9a52c4eca706cfe6ddf9cb2e53e25b /pgweb/downloads/struct.py | |
parent | 34bd7b54a5e687b90f4e8c1e9832ee864da5b2e8 (diff) |
Enable cache-busting URLs for CSS and JS
This will allow us to increase the cache times in the browser for our
CSS, which almost never changes.
Enables a new value to be used in templates, {{gitrev}}, which can be
used to bust pretty much any URL. We could do this for all the images
in the templates as well, but since most of them almost never change,
we'll just enable it manually for each individual image as it becomes
necessray - or just use a ?1, ?2 etc for those.
Enabled by default for CSS and JavaScript links, since those are much
more likely to be changed without having the URL changed.
Cache times aren't increased yet - we'll do that later one we're sure
that all existing caches are expired first.
Diffstat (limited to 'pgweb/downloads/struct.py')
0 files changed, 0 insertions, 0 deletions