Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #84: separate internal-rules from other skip_tracking rules #86

Merged
merged 1 commit into from
May 19, 2018

Conversation

stklcode
Copy link
Contributor

@stklcode stklcode commented May 19, 2018

I cut the _skip_tracking() method in two parts to enable different checks for tracking itself and appending the JS snippet without duplicating code.

Common exclusions are feed, 404, search and preview. In any other case (bots, blacklisted referrer, logged-in users, ...) the snippet is appended to avoid building up a cached page without JS.

Changed the rules for appending JS snippet to avoid caching problems.
@patrickrobrecht patrickrobrecht merged commit f52ac47 into master May 19, 2018
@patrickrobrecht patrickrobrecht deleted the hf84-fixSnippetCaching branch May 19, 2018 16:23
@stklcode stklcode added this to the 1.7.0 milestone May 19, 2018
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.

2 participants