Permalink
Browse files

Add a cache buster bit in config for now, should be automatic later on

  • Loading branch information...
mitechie committed Mar 25, 2012
1 parent 0247a32 commit 06af676de6016effa89ff781953e4345e6e95193
Showing with 18 additions and 5 deletions.
  1. +5 −4 bookie/templates/main_wrap.mako
  2. +4 −1 sample.ini
  3. +3 −0 test.ini
  4. +3 −0 test_mysql.ini
  5. +3 −0 test_psql.ini
@@ -1,6 +1,7 @@
<%
date_fmt = "%m/%d/%Y"
combo = request.registry.settings['combo_server']
+ cache_buster = request.registry.settings['combo_cache_id']
%>
<html>
<head>
@@ -19,15 +20,15 @@
<script type="text/javascript">
YUI.GlobalConfig = {
combine: true,
- base: '${combo}/combo?y/',
- comboBase: '${combo}/combo?',
+ base: '${combo}${cache_buster}/combo?y/',
+ comboBase: '${combo}${cache_buster}/combo?',
maxURLLength: 1500,
root: 'y/',
groups: {
bookie: {
combine: true,
- base: '${combo}/combo?b',
- comboBase: '${combo}/combo?',
+ base: '${combo}${cache_buster}/combo?b',
+ comboBase: '${combo}${cache_buster}/combo?',
root: 'b/',
filter: 'raw',
// comes from including bookie/meta.js
View
@@ -22,7 +22,10 @@ fulltext.engine=whoosh
fulltext.index=bookie_index
# what is the host that's providing the YUI combo loader?
-combo_server = http://127.0.0.1:8000
+combo_server=http://127.0.0.1:8000
+# set this to help bust the cache. It will add a prefix to the combo url you
+# can url-rewrite out on the server side. Left empty for development use.
+combo_cache_id=
# pull path to file to include on each page that includes things such as
# google analytics code, css overrides, etc.
View
@@ -23,6 +23,9 @@ fulltext.index=bookie_test
# what is the host that's providing the YUI combo loader?
combo_server = http://127.0.0.1:8000
+# set this to help bust the cache. It will add a prefix to the combo url you
+# can url-rewrite out on the server side. Left empty for development use.
+combo_cache_id=
# file to include on each page that includes things such as google analytics code
installspecific = /home/rharding/src/bookie/bookie/installspecific.txt
View
@@ -21,6 +21,9 @@ fulltext.engine=whoosh
fulltext.index=bookie_mysql
combo_server=127.0.0.1:8000
+# set this to help bust the cache. It will add a prefix to the combo url you
+# can url-rewrite out on the server side. Left empty for development use.
+combo_cache_id=
# file to include on each page that includes things such as google analytics code
installspecific =
View
@@ -21,6 +21,9 @@ fulltext.engine=whoosh
fulltext.index=bookie_pgsql
combo_server=127.0.0.1:8000
+# set this to help bust the cache. It will add a prefix to the combo url you
+# can url-rewrite out on the server side. Left empty for development use.
+combo_cache_id=
# file to include on each page that includes things such as google analytics code
installspecific =

0 comments on commit 06af676

Please sign in to comment.