فهرست منبع

Add cache-busting query param to doc file urls

Thibaut 10 سال پیش
والد
کامیت
fc14333e1f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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}"