Cache page with dynamic query string

Hugues Alary hugues.alary at gmail.com
Wed May 2 01:50:30 CEST 2012


If the tracking is done via Javascript (like google analytics) stripping
the query string won't prevent the tracking from happening as it will
happen on the client browser.

If the tracking happens on the backend, you're out of luck.

On Tue, May 1, 2012 at 4:46 PM, Travis Crowder
<travis.crowder at spechal.com>wrote:

> I am pretty sure the answer to this is: It's not possible; but I am hoping
> to learn something new.
>
> There is a page, let's call it promo.php.  We tell a bunch of people about
> it and append their email address to the page for tracking ... i.e
> promo.php?foo at bar.baz
>
> I believe in other to cache the page, I need to strip the query string
> (since it will be unique).  Is there a way for Varnish to cache this page,
> yet still track the hits?  i.e. Strip the query string for the lookup and
> add it back on delivery.
>
> Thanks,
> Travis
>
> ______________________________**_________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/**lists/mailman/listinfo/**varnish-misc<https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc>
>



-- 
Hugues ALARY
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120501/85e6049d/attachment.html>


More information about the varnish-misc mailing list