crowell / modpagespeed_tmp

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

Enable general purpose beacon injection #728

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Similar to the Add Instrumentation filter, it would be nice to have a general 
purpose way to inject a beacon of any type whether it be inlined or third-party.

I guess you could use the 'canonicalize_javascript_libraries' filter to 
accomplish the same thing but seems hacky.

Generally, this would makes for some interesting use-cases.

Original issue reported on code.google.com by hayes...@gmail.com on 21 Jun 2013 at 9:28

GoogleCodeExporter commented 9 years ago
Crazy idea: I wonder if mod_substitute could be used for simple injections: 
https://httpd.apache.org/docs/2.4/mod/mod_substitute.html

You could look for <body> and </body> and inject appropriate headers/trailers.  
It might be too cumbersome though to deal with general beacon construction, but 
it's just a thought.

Original comment by jmara...@google.com on 25 Jun 2013 at 1:23

GoogleCodeExporter commented 9 years ago
Hm, might be worht a look:
I would just need to make sure module ordering is respected, compression isn't 
an issue, and it doesn't muck with anything happen in modpagespeed.

Have you guys use this module in the past for anything and if so, was it 
reliable and were there any gotchas?

Original comment by hayes...@gmail.com on 25 Jun 2013 at 5:03