History

Add cache-busting query param to doc file urls

Thibaut committed 11 years ago

Commit fc143331 parent 26964021 file · +1 −1Browse files

Unified · Split

assets/javascripts/models/doc.coffee+1−1
@@ -26,7 +26,7 @@ class app.models.Doc extends app.Model · 25 unmodified lines
2626 "/#{@slug}#{path}"
2727
2828 fileUrl: (path) ->
29− "#{app.config.docs_host}#{@fullPath(path)}"
29+ "#{app.config.docs_host}#{@fullPath(path)}?#{@mtime}"
3030
3131 dbUrl: ->
3232 "#{app.config.docs_host}/#{@db_path}?#{@mtime}"