Explorar el Código

Add cache-busting query param to doc file urls

Thibaut hace 10 años
padre
commit
fc14333e1f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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}"
 
   fileUrl: (path) ->
-    "#{app.config.docs_host}#{@fullPath(path)}"
+    "#{app.config.docs_host}#{@fullPath(path)}?#{@mtime}"
 
   dbUrl: ->
     "#{app.config.docs_host}/#{@db_path}?#{@mtime}"