Question view counter keeps increasing when viewing self question with browser refresh
prithvidasgupta opened this issue · comments
Describe the bug
A user can keep revisiting their own question and the view counter keeps increasing.
It may lead to potential scenarios where an anxious user can keep revisiting their question and reach thousands of views (when in reality no one other than them has actually viewed the question).
To Reproduce
Steps to reproduce the behavior:
- Log in
- Ask a question
- Notice the view counter
- Keep refreshing the question detail page
- Notice view counter keeps increasing
Expected behavior
Ability to not count own views.
Yes, you're right. The function here is to count page views (PV) rather than unique visitors (UV). We could ask @fenbox whether it's necessary to track one's own visits to their questions.
I think pageviews should count the total number of visits, including those made by the author.