Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sticker wear #108

Closed
sFireFrog opened this issue Sep 9, 2022 · 5 comments
Closed

Sticker wear #108

sFireFrog opened this issue Sep 9, 2022 · 5 comments

Comments

@sFireFrog
Copy link

Sticker wear is now always 0.Did steam change something?

@Step7750
Copy link
Member

Step7750 commented Sep 10, 2022

Please give an example of an item that has obvious sticker wear in-game but shows up at 0.00 in the API.

Specifically, include the inspect link.

@MaxsonDev
Copy link

Please give an example of an item that has obvious sticker wear in-game but shows up at 0.00 in the API.

Specifically, include the inspect link.

@Step7750 Hello. Actully, there is a problem with the wear of stickers. I bought 2 items that show 100% wear. After I saw on the Buff that they have a wear of 0. I looked in cs and indeed the stickers were completely erased or there were scuffs. Examples:

steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561199255329491A28540289078D14044174911626201433

steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20M4242989842920296363A28597345604D10260471416862409595

There were also lots with incorrect wear. But this is on the market. Of course I can't find them.

@Step7750
Copy link
Member

Step7750 commented Apr 1, 2023

This is because we have very aggressive caching (kind of necessary for the prod API since we get 100 million+ requests per day). If we want to have sufficient speed (Valve's GC is slower than our internal caches) for the majority of requests, this is necessary.

So, this is a known tradeoff between performance and freshness -- notably Valve is kind enough to not change the inspect URL at all when a sticker is scratched.

Once a sticker is fully scratched, the URL changes and will cache bust on our end.

@wangxingzhen
Copy link

This is because we have very aggressive caching (kind of necessary for the prod API since we get 100 million+ requests per day). If we want to have sufficient speed (Valve's GC is slower than our internal caches) for the majority of requests, this is necessary.

So, this is a known tradeoff between performance and freshness -- notably Valve is kind enough to not change the inspect URL at all when a sticker is scratched.

Once a sticker is fully scratched, the URL changes and will cache bust on our end.

Whether it is possible to add a flag parameter that indicates whether to use caching by default or to call Valve directly

@wangxingzhen
Copy link

This is because we have very aggressive caching (kind of necessary for the prod API since we get 100 million+ requests per day). If we want to have sufficient speed (Valve's GC is slower than our internal caches) for the majority of requests, this is necessary.
So, this is a known tradeoff between performance and freshness -- notably Valve is kind enough to not change the inspect URL at all when a sticker is scratched.
Once a sticker is fully scratched, the URL changes and will cache bust on our end.

Whether it is possible to add a flag parameter that indicates whether to use caching by default or to call Valve directly

Or, if it has a sticker, don't cache it and just call Valve every time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants