-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add option to pass a cachebusting parameter #575
Comments
Basically the same idea as this |
No one implemented this yet? Any patch available? |
I just ran into the same issue. I am behind a corporate proxy that sits between Uptime Kuma and the host I am trying to reach and it caches (for a very long time) the response of that host. If inside the Uptime Kume docker container I run
If I ask
Similarly if I add a random (non-existent) query parameter I also get the correct response:
Is there maybe an environment variable that forces node to skip cache? Or another way to work around this issue? Update: {
"auths": {},
"proxies": {
"default": {
"httpProxy": "http://proxy.domain.tld:8080",
"httpsProxy": "http://proxy.domain.tld:8080",
"noProxy": ".domain.tld,127.0.0.0/8"
}
} Of course the Hopefully this helps someone else as well. |
Adding a cachebusting PR would likely get accepted, as this is not a big feature + eazy to maintain.
As a workaround until someone gets around to providing a PR: |
It looks like this will be in version 2.1.0 based on milestones, but no due date has been set. Are we looking at a year out for this? |
This comment was marked as spam.
This comment was marked as spam.
First, as an volunteer run project, we don't give out esitimates. See #noestimates for further details. Secondly, I don't know how you are getting this number. |
I understand, doesn't hurt to ask.
That's what I did, and this is why I asked to get a general temperature. Thanks. |
Is it a duplicate question?
no
Is your feature request related to a problem? Please describe.
Some websites use edge-caches such as AWS cloudfront.
Meaning site HTML response is fully cached on some aws cloudfront pop server.
Meaning "uptime kuma" will in essence be measuring uptime of random amazon cloudfront pop server in this case...
same if site uses varnish caching proxy server for example.
I would argue most folks would like to see origin uptimes instead.
Describe the solution you'd like
Add an option to inject dynamically generated random query param so HTTP request breaks through cache and reaches origin.
Add that dynamic query param cachebreaker to all urls:
http://example.com?cb=RANDOMSTRING
Describe alternatives you've considered
im not aware of any.
Additional context
![uptime kuma](https://user-images.githubusercontent.com/3410509/136201228-7d2b630f-5f8f-4468-9eb3-2fe403c2fbcd.png)
The text was updated successfully, but these errors were encountered: