【问题标题】:What is the purpose of the addFingerPrint property in a page template definition?页面模板定义中 addFingerPrint 属性的用途是什么?
【发布时间】:2020-01-23 15:48:09
【问题描述】:

我正在向我的 Magnolia page template definition 添加一个 JavaScript 文件。例如:

jsFiles:
  index:
    link: path/to/resource.js
    addFingerPrint: true

当我将addFingerPrint 设置为true 时会发生什么?

【问题讨论】:

    标签: magnolia


    【解决方案1】:

    addFingerPrint 设置为true“在资源URL 中嵌入文件内容指纹”。

    在资源 URL 中嵌入文件内容指纹。指纹由 yyyy-MM-dd-HH-mm-ss-SSS 格式的时间戳和以标准选择器(“~”波浪号)开头的单词“cache”组成。

    来源:https://documentation.magnolia-cms.com/display/DOCS61/Theme#Theme-JavaScriptfiles

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-08-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-18
      • 2014-02-01
      相关资源
      最近更新 更多