jxmot / markdown-hitcounter

A simple, yet silent hit counter intended for Markdown files. Its intended use is in README.md files.
MIT License
0 stars 0 forks source link

Investigate: Github "double taps" #10

Closed jxmot closed 2 years ago

jxmot commented 2 years ago

It appears that for a single view the README file is loaded more than once. Check to see if this is true.

If true then implement a debounce to filter the unnecessary hits.

jxmot commented 2 years ago

Hit debouncing:

jxmot commented 2 years ago

After more thought, this is a data retention nightmare. Would have to "track" multiple IPs and keep a "live" table of visitors. And it would require constant, periodic flushing of the "live" table. This type of change would most likely impact performance.

Will have to just live with the double taps.