Greasy Fork is available in English.

Discussioni » Feedback di Greasy Fork

Why is meta API sometimes returns the previous version but not the latest?

§
Pubblicato: 26/08/2021
Modificato: 26/08/2021

I tried to request urls like https://greasyfork.org/scripts/{NumberScriptID}/code/script.meta.js to get the meta info of one script (for example: https://greasyfork.org/scripts/416310/code/script.meta.js). But I found the meta info didn't appears like the latest version of the script (for example, the latest version of https://greasyfork.org/scripts/416310/ is 1.4.8, but when I request https://greasyfork.org/scripts/416310/code/script.meta.js I've got version 1.4.7.1(the previous version but not the latest)).Similarly, I got the previous version when I requested urls like https://greasyfork.org/scripts/{NumberScriptID}/code/script.user.js. How can I get the latest meta data and latest script using ScriptID?

PS: While I'm typing these words, I found the problem disappeared itself, and now I'll get the latest version if I request those urls again. Is there any buffering time in GreasyFork?

§
Pubblicato: 27/08/2021

There is indeed caching involved with these things. I looked into it and I found that when the script was updated, it would clear any paths like /scripts/123-name/ but not just /scripts/123/. I've fixed this, so maybe your problem is fixed.

§
Pubblicato: 27/08/2021
Modificato: 27/08/2021

Oh, thank you. The buffering time now seems to be shortened.

Pubblica risposta

Accedi per pubblicare una risposta.