hint icon indicating copy to clipboard operation
hint copied to clipboard

[Feature] Recognize `@` prefix file revving

Open PaperStrike opened this issue 4 years ago • 0 comments
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!

PaperStrike avatar Jun 18 '21 20:06 PaperStrike