Skip to content

fix(core): count only GET (not HEAD) as a pageView#47

Merged
vklimontovich merged 1 commit into
mainfrom
fix/pageview-get-only
Jun 7, 2026
Merged

fix(core): count only GET (not HEAD) as a pageView#47
vklimontovich merged 1 commit into
mainfrom
fix/pageview-get-only

Conversation

@vklimontovich
Copy link
Copy Markdown
Collaborator

Follow-up to #45. A HEAD request is a metadata probe (uptime monitors, link checkers, cache
revalidation) — nothing is actually viewed — so it shouldn't be recorded as a pageView.

Narrows the non-API pageView gate to GET + document navigations; HEAD now joins
POST/PUT/etc. in being skipped. API paths are unaffected (still apiCall for any method).

New e2e asserts both POST and HEAD to a non-API route handler produce no pageView. Full
matrix green (44/44).

🤖 Generated with Claude Code

A HEAD is a metadata probe (uptime monitors, link checkers, cache
revalidation) — nothing is viewed — so it shouldn't be a pageView. Track only
GET and document navigations; HEAD now joins POST/PUT/etc. in being skipped on
non-API routes. API paths are unaffected (still apiCall for any method).
@vklimontovich vklimontovich merged commit 7afa8c2 into main Jun 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant