CACHE_SECONDS env doesn't seem to work??? #3949
-
The CACHE_SECONDS environmental variable doesn't seem to work when value is set to 1 but works when value is set to 0. Am i doing something wrong? or is it a bug? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
When i set it to 10 it doesn't refresh after 10 seconds. |
Beta Was this translation helpful? Give feedback.
-
or at least the /status/pat-info remaining count doesn't go down. |
Beta Was this translation helpful? Give feedback.
-
Hello @kokofixcomputers Recently I have merged a pull request #4539 which made the server to return correct cache disabling headers when the Previously it also worked, but only in case you are accessing your card directly in separate browser window. When you observing the card in your profile, it was served from |
Beta Was this translation helpful? Give feedback.
Hello @kokofixcomputers
Recently I have merged a pull request #4539 which made the server to return correct cache disabling headers when the
CACHE_SECONDS
environment variable set to 0. You can merge the recent changes in master branch into your fork and enjoy the card updating on each request.Previously it also worked, but only in case you are accessing your card directly in separate browser window. When you observing the card in your profile, it was served from
camo.githubusercontent.com
, GitHub reuploads all images to their CDN and looks like clamping the minimum cache timing.