Custom ETag algorithm for asset fingerprinting

前端 未结 1 837
粉色の甜心
粉色の甜心 2021-01-28 12:11

How to specify the ETag algorithm used for asset fingerprinting in Play without using third-party plugins?

For example, specify that the ETag is to be the environment va

相关标签:
1条回答
  • 2021-01-28 12:40

    At present there is no configuration possibility to specify what ETag algorithm to use with the Play API.

    The Assets class can be extended and overridden to keep all the benefits of the aggressive caching that Play does when changing the ETag algorithm.

    The BUILD_NUMBER can be passed in to the algorithm and the GitHub API can be used to obtain the revision number for any file.

    0 讨论(0)
提交回复
热议问题