hint
hint copied to clipboard
[Feature] Recognize `@` prefix file revving
trafficstars
🚀 Feature request
Description
Many platforms use @ (e.g. jsDelivr) to identify files of different versions, like: [email protected]/dist/abc.js. This is quite common and I think it a need to add some built-in support.
Details
Related hint: HTTP cache
Example regex:
/@(\d+\.\d+\.\d+|[0-9a-f]{5,})([/.]|$)/i
Example URL:
https://example.com/[email protected]/dist/abc.js
https://example.com/[email protected]
https://example.com/[email protected]
https://example.com/abc@1a2b3c/dist/abc.js
https://example.com/[email protected]
https://example.com/abc@1a2b3c
Thanks for taking your time!