Browse Source

Add cache-busting query param to doc file urls

Thibaut 10 years ago
parent
commit
fc14333e1f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      assets/javascripts/models/doc.coffee

+ 1 - 1
assets/javascripts/models/doc.coffee

@@ -26,7 +26,7 @@ class app.models.Doc extends app.Model
     "/#{@slug}#{path}"
     "/#{@slug}#{path}"
 
 
   fileUrl: (path) ->
   fileUrl: (path) ->
-    "#{app.config.docs_host}#{@fullPath(path)}"
+    "#{app.config.docs_host}#{@fullPath(path)}?#{@mtime}"
 
 
   dbUrl: ->
   dbUrl: ->
     "#{app.config.docs_host}/#{@db_path}?#{@mtime}"
     "#{app.config.docs_host}/#{@db_path}?#{@mtime}"