Closed lisonge closed 2 years ago
@updateURL
does nothing on Greasy Fork. It will be removed if specified.
If you are using Greasy Fork's syncing feature, then I suggest you point it to the file on GitHub rather than a CDN.
ok, replace url with github raw url is a solution.
but i think greasyfork synchronous operations should not use cache.
and even if you use the cache, you should use the negotiation cache. because cdn.jsdelivr.net is preferred to use negotiation cache.
They wouldn't cache client-side. There may be server-side caching though.
As far as I can tell,
https://greasyfork.org/scripts/441073-%E5%8E%9F%E7%A5%9Ewiki%E8%BE%85%E5%8A%A9%E5%B7%A5%E5%85%B7/code/%E5%8E%9F%E7%A5%9EWiki%E8%BE%85%E5%8A%A9%E5%B7%A5%E5%85%B7.user.js https://cdn.jsdelivr.net/gh/lisonge/op-wiki-plus@main/dist/op-wiki-plus.user.js https://raw.githubusercontent.com/lisonge/op-wiki-plus/main/dist/op-wiki-plus.user.js
All have the same thing at the moment (except Greasy Fork stripped @updateURL
, which is expected). So I don't see any problem here.
when i set sync url to
https://cdn.jsdelivr.net/gh/lisonge/op-wiki-plus@main/dist/op-wiki-plus.user.js
at https://greasyfork.org/zh-CN/scripts/441073-%E5%8E%9F%E7%A5%9Ewiki%E8%BE%85%E5%8A%A9%E5%B7%A5%E5%85%B7/adminin first time, it will work
but when i upgrade version and update file https://cdn.jsdelivr.net/gh/lisonge/op-wiki-plus@main/dist/op-wiki-plus.user.js
then i click
Update Settings and sync immediately
at https://greasyfork.org/zh-CN/scripts/441073-%E5%8E%9F%E7%A5%9Ewiki%E8%BE%85%E5%8A%A9%E5%B7%A5%E5%85%B7/adminbut it not work, just show
Script successfully synced, but no changes found.
finally i need click
Close synchronization of this script
and fill in the update link again, it will workI think the reason is max-age of cdn.jsdelivr.net, Is there any other solution?