Permalink
Browse files

Force cache reset when website verison is updated

  • Loading branch information...
1 parent 51eb550 commit 2a6fac9563e131d55eabd3850f7ad2a4736fbf2a @balupton balupton committed Feb 10, 2013
Showing with 13 additions and 6 deletions.
  1. +9 −3 app/out/docpad.js
  2. +3 −2 app/src/docpad.coffee
  3. +1 −1 package.json
View
Oops, something went wrong.
@@ -14,6 +14,7 @@ appPath = __dirname
sitePath = rootPath+'/site'
textData = requireFresh(appPath+'/templateData/text')
navigationData = requireFresh(appPath+'/templateData/navigation')
+websiteVersion = require(rootPath+'/package.json').version
@@ -122,7 +123,7 @@ docpadConfig =
'/vendor/normalize.css'
'/vendor/h5bp.css'
'/styles/style.css'
- ]
+ ].map (url) -> "#{url}?websiteVersion=#{websiteVersion}" # hack for the meantime until we implement better cache resets
# Script
scripts: [
@@ -138,7 +139,7 @@ docpadConfig =
"/scripts/historyjsit.js"
"/scripts/bevry.js"
"/scripts/script.js"
- ]
+ ].map (url) -> "#{url}?websiteVersion=#{websiteVersion}" # hack for the meantime until we implement better cache resets
# -----------------------------
# Helper Functions
View
@@ -1,6 +1,6 @@
{
"name": "docpad-wesite",
- "version": "0.1.1",
+ "version": "0.1.2",
"private": true,
"description": "The Docpad Website",
"homepage": "https://github.com/bevry/docpad-website",

0 comments on commit 2a6fac9

Please sign in to comment.