Add Varnish functionality to add a client browser cookie that records which pages a browser has loaded in a given day and sets a include_pv=0 key on x-analytics when a page has already been viewed before or 10 unique pageviews are exceeded.
Background: https://meta.wikimedia.org/wiki/Differential_privacy/Active/Country-project-page/User_filtering
Technical requirements:
- Pageviews to namespace 0 only
- Domain-specific -- e.g., en.wikipedia is handled separately from fr.wikipedia
- Cookie should always expire at midnight UTC
- After 10 pageviews are reached, cookie with list should be cleared and all following pageviews excluded
- For at least initial testing, include_pv key should be passed to x_analytics on all pageviews detected and set to 1 for any of the first 10 unique pageviews and 0 for everything else