GitHub Actions downloads (probably) cached files #25741
-
I have edited this post after tinkering a little bit. This is a test file i created:
The last command prints always When working with APIs, id like to get a non-cached and up to date file. Why do i get an old one and how can i force a fresh one? Appending a timestamp as get parameter to make the url unique doesnt work. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Exactly how do you download the files? You mention the Python |
Beta Was this translation helpful? Give feedback.
-
but how i “create” the url shouldnt be of importance right? with this code ive even tried to add a timestamp at the end of the url to make it unique but that didnt work either. still getting the old file. and i am sure its downloaded because of the |
Beta Was this translation helpful? Give feedback.
-
in my workflow, this prints |
Beta Was this translation helpful? Give feedback.
-
i have edited the title and first post to better reflect my issue |
Beta Was this translation helpful? Give feedback.
-
Slluxx:
I meant the exact URL might matter, but with the one in the last example I don’t see a potential problem. There could be differences on the server side though. For example, there is a |
Beta Was this translation helpful? Give feedback.
-
edit: nevermind. you are right ive tested with a vpn again and i am getting different data based on the country i am in. |
Beta Was this translation helpful? Give feedback.
I meant the exact URL might matter, but with the one in the last example I don’t see a potential problem. There could be differences on the server side though. For example, there is a
country_codes
element in the response, so maybe there are different answers based on guessed location or something?