crowell / modpagespeed_tmp

Automatically exported from code.google.com/p/modpagespeed
Apache License 2.0
0 stars 0 forks source link

MapRewriteDomain with re2 support? #694

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There are many sites that for logged-in users will use cookie-based 
authentication in a dynamic script to generate in-page content.

For example,

<img src="/dynamicscript.php?foo=bar" />

Where dynamicscript.php checks for an authentication cookie before returning 
the image in question. Enabling MapRewriteDomain breaks this, as replacing the 
above with something like

<img src="http://mycdn.com/dynamicscript.php?foo=bar" />

Will not necessarily result in the same behavior. If I'm not mistaken, there is 
currently no way to prevent this without explicitly enumerating all possible 
configurations except for /dynamicscript.php as separate MapRewriteDomain rules.

I understand it is not desirable to switch everything over to re2 because 
there's a lot more cognitive overhead involved verses simple wildcards, but 
perhaps there is another solution (maybe MapRewriteDomainRe2)?

Thanks.

Original issue reported on code.google.com by mqu...@gmail.com on 12 May 2013 at 12:31

GoogleCodeExporter commented 9 years ago
I've been thinking about this and want to try to solve this more generically.  
Provide a Central Scrutiziner to determine which transformations get applied to 
which resources/tags in which contexts.

I'm adding the use-case from this bug into Issue 689.

Original comment by jmara...@google.com on 13 May 2013 at 2:26