-
Select Topic AreaQuestion BodyHello! I just finished making a URL route tracker, intended to be used to see how many times a specific user/repository has been viewed. While there are numerous flaws with execution and ultimately may not be useful, at the end of the day the funny monkey's brain does like seeing numbers go up. On my GitHub profile is an example of the route tracker being used: However, when refreshing, the funny number does not go up. When reloading the page, I double checked to ensure that my browser (Firefox) was clearing it's cache (DevTools -> Networking -> Disable Cache). After checking GitHub's Camo documentation, I see that it's supposed to respect the Likewise, when doing As the Camo docs instructed, I did try purging the cache: HTTP/2 200
content-type: application/json
accept-ranges: bytes
date: Fri, 11 Apr 2025 07:35:54 GMT
x-varnish: 2547908950
via: 1.1 varnish
x-served-by: cache-stl760082-STL
content-length: 50
{ "status": "ok", "id": "760082-1743233251-8772" }After making the request multiple times, the response was now returning either Is there anything I'm doing wrong here, or is this something out of my control? The code for the URL tracker can be found here: https://github.com/OoLunar/CloudflareRouteTracker/blob/1e7c92ea2b693500f4e53d90822a1dd3308fd649/src/index.ts, I apologize for the messy code. The service is hosted as a Cloudflare worker and the behavior is working as expected when I access the resource directly. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
I'm getting a similar issue to you. Mine will finally forward the request after a minute or so, which causes the counter to update. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
I figured out a solution by reverse engineering the badges this guy built: https://github.com/antonkomarev I added this to my nginx config to set these specific headers: for some reason, screenshot of it working on my profile: now it will update on each page refresh, at least for me. How will it handle high traffic? not sure 😊 |
Beta Was this translation helpful? Give feedback.


I figured out a solution by reverse engineering the badges this guy built: https://github.com/antonkomarev
I added this to my nginx config to set these specific headers:
for some reason,
no-cachedoesn't work on it's own, perhaps I understand it wrong.screenshot of it working on my profile:
now it will update on each page refresh, at least for me. How will it handle high traffic? not sure 😊