GreatAuk / plugin-web-update-notification

Detect webpage updates and notify user to reload. support Vite, Umijs, and Webpack.
MIT License
490 stars 42 forks source link

the time suffix hits the web_version_by_plugin.json cache #46

Closed zjsqian closed 1 year ago

zjsqian commented 1 year ago

web_version_by_plugin.json use "t=${performance.now()}" as suffix. When there is a high number of visiting users and the website utilizes a CDN, it can result in the file being cached and frequently prompting the need to refresh the page. Is it possible to change the file's suffix to a timestamp?

GreatAuk commented 1 year ago

good question