A question about asset fingerprinting in Play.
How to ask Play to embed ETags in URLs without using a third-party plugin?
E.g., if /css/resource.css
had the ETag of 1234
, then it would become /css/responsive-1234.css
.
Related questions: Custom ETag algorithm for asset fingerprinting & Automatically Insert ETag (asset fingerprinting) as comment at top of the resource
There'll be the "out" routing and the "in" reverse routing. Firstly the "out" routing:
Then in templates use the following for example:
Now the reverse routing, add the following to the same controller:
Then in
routes
: