<div>You don't need to put the query string back and even if you do so, it won't change anything.</div><div><br><div><br></div><div> GET /promo.php?<a href="mailto:foo@baz.com">foo@baz.com</a> GET /promo.php</div>
<div>client -----------------------------------------------> Varnish -------------------------> backend</div><div> /promo.php?<a href="mailto:foo@baz.com">foo@baz.com</a> /promo.php</div>
<div>client <---------------------------------------------- Varnish <-------------------------- backend</div><div><br></div><div>On the Varnish side, the url cached is promo.php.</div><div>On the client side, the url in the browser bar will stay promo.php?<a href="mailto:foo@baz.com">foo@baz.com</a> and you can access the query string, in javascript.</div>
<div><br><div class="gmail_quote">On Tue, May 1, 2012 at 4:54 PM, Travis Crowder <span dir="ltr"><<a href="mailto:travis.crowder@spechal.com" target="_blank">travis.crowder@spechal.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Thanks for your quick reply. I appreciate it.<br>
<br>
The tracking does happen on the front end (omniture javascript),
which is why I am weary of just stripping it out. Do you believe
the approach of stripping and adding back in the query string is
appropriate?<br>
<br>
Thanks again,<br>
Travis<div><div class="h5"><br>
<br>
On 5/1/2012 6:50 PM, Hugues Alary wrote:
<blockquote type="cite">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.
<div><br>
</div>
<div>If the tracking happens on the backend, you're out of luck.<br>
<br>
<div class="gmail_quote">On Tue, May 1, 2012 at 4:46 PM, Travis
Crowder <span dir="ltr"><<a href="mailto:travis.crowder@spechal.com" target="_blank">travis.crowder@spechal.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am pretty sure the answer to this is: It's not possible;
but I am hoping to learn something new.<br>
<br>
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 <a href="mailto:promo.php?foo@bar.baz" target="_blank">promo.php?foo@bar.baz</a><br>
<br>
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.<br>
<br>
Thanks,<br>
Travis<br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Hugues ALARY<br>
</div>
</blockquote>
</div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Hugues ALARY<br>
</div></div>