antonkomarev / github-profile-views-counter

It counts how many times your GitHub profile has been viewed. Free cloud micro-service.
https://komarev.com/sources/github-profile-views-counter
MIT License
3.92k stars 357 forks source link

[Bug] Switching between tabs on profile page increases the profile view counter by 3 #55

Closed aakashthakare closed 1 year ago

aakashthakare commented 1 year ago

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 1 year ago

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.