-
I know Vercel official server has cache about six hour or even more. When i wait for one day, result of http server is updated, but readme of home page didn't update. After checking the request url of readme stat, it direct to I know github has another cache, and I want to know when github update resources cached. I hope I have expressed my meaning clearly |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
oh, i find it is updated after three days, sorry to disturb you! |
Beta Was this translation helpful? Give feedback.
-
Hello @Shxuuer As far as I know the cache timing on the camo.githubusercontent.com depends from the cache headers received from Vercel server, so it should be very close to the ones we're settings in the code. At the moment we have 24 hours cache for stats card and 6 days for top languages card. In case you want your cards to be updated more often, then you can deploy own instance using own GitHub API token. There you will be able to set an environment variable Feel free to contact me in case you'll have any other questions. |
Beta Was this translation helpful? Give feedback.
Hello @Shxuuer
As far as I know the cache timing on the camo.githubusercontent.com depends from the cache headers received from Vercel server, so it should be very close to the ones we're settings in the code. At the moment we have 24 hours cache for stats card and 6 days for top languages card.
In case you want your cards to be updated more often, then you can deploy own instance using own GitHub API token. There you will be able to set an environment variable
CACHE_SECONDS
with any positive integer as value.Feel free to contact me in case you'll have any other questions.