页面模板定义中 addFingerPrint 属性 的用途是什么?
What is the purpose of the addFingerPrint property in a page template definition?
我正在向我的 Magnolia page template definition 添加一个 JavaScript 文件。例如:
jsFiles:
index:
link: path/to/resource.js
addFingerPrint: true
当我将 addFingerPrint
设置为 true
时会发生什么?
正在将 addFingerPrint
设置为 true
"embeds a file content fingerprint in the resource URL"。
Embeds a file content fingerprint in the resource URL. The fingerprint consists of a timestamp in the yyyy-MM-dd-HH-mm-ss-SSS format, and the word "cache" both preceded by the the standard selector ("~" tilde).
来源:https://documentation.magnolia-cms.com/display/DOCS61/Theme#Theme-JavaScriptfiles
我正在向我的 Magnolia page template definition 添加一个 JavaScript 文件。例如:
jsFiles:
index:
link: path/to/resource.js
addFingerPrint: true
当我将 addFingerPrint
设置为 true
时会发生什么?
正在将 addFingerPrint
设置为 true
"embeds a file content fingerprint in the resource URL"。
Embeds a file content fingerprint in the resource URL. The fingerprint consists of a timestamp in the yyyy-MM-dd-HH-mm-ss-SSS format, and the word "cache" both preceded by the the standard selector ("~" tilde).
来源:https://documentation.magnolia-cms.com/display/DOCS61/Theme#Theme-JavaScriptfiles