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
26 "/#{@slug}#{path}"26 "/#{@slug}#{path}"
27 27
28 fileUrl: (path) ->28 fileUrl: (path) ->
29 "#{app.config.docs_host}#{@fullPath(path)}"29 "#{app.config.docs_host}#{@fullPath(path)}?#{@mtime}"
30 30
31 dbUrl: ->31 dbUrl: ->
32 "#{app.config.docs_host}/#{@db_path}?#{@mtime}"32 "#{app.config.docs_host}/#{@db_path}?#{@mtime}"