mirror of
https://github.com/antonkomarev/github-profile-views-counter.git
synced 2026-07-11 16:21:53 -04:00
[Bug] Switching between tabs on profile page increases the profile view counter by 3 #35
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aakashthakare on GitHub (Oct 31, 2022).
On profile page, if you switch tab say from Overview to Repository and come back to Overview tab, you'll see counter of profile view is increased by 3.
Not sure about the feasibility, but it should increase by one only.
@antonkomarev commented on GitHub (Nov 1, 2022):
Each profile view page doesn't use any cache, so page loading increments the counter.
We don't know who was the original initiator of the request, we can only increase the counter when GitHub server message us.
This is because GitHub proxies all image URLs through the GitHub Camo service. The IP address and user agent in each request are always the same, they are replaced with Camo service ones.