Maks Orlovich
f4562ad914
Rename kProcessScope -> kLegacyProcessScope to make it less likely it
...
would be used by mistake in new code. (Also needs nginx to be updated..)
2016-05-30 12:51:41 -04:00
Jeffrey Crowell
e1db59e69d
sync pagespeed_libraries.conf
...
pull in latest jquery
2016-05-24 14:24:16 -04:00
Jeffrey Crowell
3d38507f15
send webp to pagespeed insights.
...
insights can render webp, but doesn't advertise Accept: image/webp we
can send webp for benchmarking purposes though.
2016-05-24 14:18:38 -04:00
Maks Orlovich
53fcf10b32
Implement proper ProxyMode and IsProxyEncoded in MeasurementProxyUrlNamer;
...
otherwise we end up rejecting combine + rewrite CSS URLs. As part of this,
split ProxyMode semantics into two pieces: the decoding bit (which we want),
and the part that forced absolufication (which we don't want here, but other
applications do).
2016-05-23 16:48:45 -04:00
Maks Orlovich
4f657b9298
Always parse process config into RewriteDriverFactory::default_options,
...
and then sync it back to per-ServerContext options. Should fix the
regression with ImageMaxRewritesAtOnce
(https://github.com/pagespeed/mod_pagespeed/issues/1305 )
and give RewriteDriverFactory and all the ServerContexts a
consistent view of their value.
2016-05-19 16:58:05 -04:00
Maks Orlovich
6f90e5988e
Rollback removal of config info from MeasurementProxyUrlNamer.
...
Turns out I need it to properly implement IsProxyEncoded.
2016-05-17 11:23:55 -04:00
Joshua Marantz
6ccb1a06d3
Library updates.
2016-05-16 14:00:29 -04:00
Maks Orlovich
0e25c27eb0
Cleanup some unused state from MeasurementProxyUrlNamer now it's clear the
...
responsibility that would need it will be in MeasurementProxyRewriteOptionsManager.
2016-05-09 10:45:51 -04:00
Maks Orlovich
5ad68c28b0
Initial integration of measurement proxy mode.
2016-05-05 13:22:58 -04:00
Steve Hill
5ff19f7103
Add stub grpc-enabled proto file.
2016-05-04 18:01:35 -04:00
Jeffrey Crowell
b11df43b7f
change from @morlovich Add streaming to SimpleBufferedApacheFetch. Also make it
...
possible to turn on proper flushing for FullProxy mode to make this
actually useful.
2016-05-04 17:19:55 -04:00
Maks Orlovich
1a32fcee5e
Config decoder for measurement proxy mode.
...
Also fix the decoder to actually authorize fetches of things it decoded.
2016-05-04 14:58:47 -04:00
Steve Hill
501345d634
Re-factor protoc.gypi to be less messy
2016-05-03 17:05:56 -04:00
Maks Orlovich
85f7eb513a
Basic infrastructure for a mode in which MPS acts as a proxy for all requests.
...
Not really intended as end-user feature at this point, mostly meant for
some measurement experiments we want to do.
2016-04-28 14:47:34 -04:00
Joshua Marantz
07c1fcc170
This is an attemped unit-test repro of
...
https://github.com/pagespeed/mod_pagespeed/issues/1294
The unit test works properly, so there is no code change in this commit.
The bug remains outstanding.
2016-04-27 09:13:13 -04:00
Maks Orlovich
0544579b75
Basic UrlNamer for measurement proxies.
...
Not connected to anything yet, but unit-tested.
2016-04-26 15:22:16 -04:00
Maks Orlovich
e189453005
Remove essentially unused parameter from UrlNamer::Decode
2016-04-21 14:45:14 -04:00
Maks Orlovich
682dfb272e
Update library index
2016-04-21 14:44:41 -04:00
Maks Orlovich
9783244e9e
A primitive push/preload filter. No smarts, just pushes it all!
2016-04-18 17:04:18 -04:00
Steve Hill
aceda00f28
Flatten experiment variant to int for ga.js.
...
If experiment variant is not an int, inject JS comment with a warning.
2016-04-18 14:23:26 -04:00
Maks Orlovich
9478c5a132
Very basic filter to collect direct dependencies.
...
(For potential push/preload use)
2016-04-18 13:59:15 -04:00
Maks Orlovich
257a8a9ce0
Update library index
2016-04-18 13:55:18 -04:00
Jeffrey Crowell
3121d5edc4
sync genfiles
2016-04-12 15:42:17 -04:00
Joshua Marantz
7d441cee06
Add missing file.
2016-04-11 22:12:07 -04:00
Joshua Marantz
ffbd5a3047
Filter to add a <link rel=amphtml> tag to a page.
...
Motivating use-case: for Triton, we want the web page
www.example.com/a/b
to include the tag:
<link rel=amphtml href="https://project123.appspot.com/a/b/amp ">
and
www.example.com/a/b/
to include the tag:
<link rel=amphtml href="https://project123.appspot.com/a/b/amp/ ">
This is enabled by setting the PSS options:
EnableFilter InsertAmpLinkFilter
AmpLinkPattern
"https://project123.appspot.com${path_no_trailing_slash}/amp${maybe_trailing_slash}${maybe_query}
This is from sjnickerson@google.com
2016-04-11 21:35:59 -04:00
Maks Orlovich
c512a65f78
Separate out InputInfo from CachedResult, so I can have dependency
...
chain of CachedResult -> Dependencies -> InputInfo and can then
safely have a Dependencies in CachedResult, rather than a cycle.
This is needed for kind of dumb reasons, though: normal RewriteContext
operation forces things to go through CachedResult while I really only
want to run on the slot chain, but it doesn't seem worth a major refactor
to avoid that.
Note: resource_tag_scanner_test.cc should go with previous commit,
input_info.proto with this one.
2016-04-11 14:47:48 -04:00
Maks Orlovich
ea3b78c7b6
Change by jefftk: Add support for rewriting data-src atttribute on images
2016-04-11 14:20:22 -04:00
Jeff Kaufman
689e3f1a0d
Set s-maxage=10 on resources that we haven't IPRO-optimized yet.
...
Fixes https://github.com/pagespeed/mod_pagespeed/issues/1220
2016-04-07 16:01:08 -04:00
Maks Orlovich
81a12c144d
Add locking to DependencyTracker, will need it.
2016-04-05 14:41:40 -04:00
Jeff Kaufman
5aa12cf256
setChosenVariant was a typo for setChosenVariation
...
Fixes experiment reporting for classic ga.js
Fixes https://github.com/pagespeed/mod_pagespeed/issues/1288
2016-04-05 11:24:40 -04:00
Steve Hill
6f6ee36fc3
Add gyp bindings for grpc. For verfication purposes, inserts a somewhat
...
arbitrary (but likely permanent) dependency on grpc::CompletionQueue into
SystemServerContext.
2016-04-04 18:27:39 -04:00
Jud Porter
6c465391de
Fix wording on mobilizer buttons.
2016-04-04 11:48:40 -04:00
Jud Porter
1b19b6974a
Remove unused blink js.
2016-04-04 11:12:01 -04:00
Maks Orlovich
3196519205
Hookup DependencyTracker into RewriteDriver; add an experiment-only option for turning it (and stuff that will use it) on and off.
2016-04-04 10:41:18 -04:00
Joshua Marantz
f9fdda7d32
Add more thorough rewriting capability to static_rewriter.
2016-04-01 12:43:10 -04:00
Maks Orlovich
90bfc8f469
Remove now obsolete blink flags
2016-04-01 10:58:30 -04:00
Maks Orlovich
5e835486c5
Add dependency tracker class, which helps collect async-computed
...
info into pcache. Not hooked up yet.
2016-03-31 15:40:15 -04:00
Maks Orlovich
d88badfd1d
Reinstate 3224d86, got rolled back by accident.
2016-03-31 15:11:00 -04:00
Maks Orlovich
94342c6e43
Change by jmarantz: Add disclaimer boilerplate comment to all speed-tests.
2016-03-31 15:08:32 -04:00
Maks Orlovich
7aa5db95a4
Rgen library index.
2016-03-31 15:07:52 -04:00
Maks Orlovich
e8af38db04
Remove more blink/cache html leftovers.
2016-03-30 11:02:10 -04:00
Maks Orlovich
3224d86e46
jmarantz: Don't run SupportNoscript when in AMP mode.
2016-03-29 14:58:05 -04:00
Maks Orlovich
f7db08df14
Get rid of the now unused blink cohort.
2016-03-29 14:57:29 -04:00
Joshua Marantz
1d25e18b3d
Add new cohort for dependencies info. Can't use the DOM cohort since
...
it's written too early -- we need results of rewrites. (morlovich)
2016-03-28 21:59:19 -04:00
Jeff Kaufman
cc62cd2e1d
fix issue with fetching and content types
2016-03-28 13:12:49 -04:00
Joshua Marantz
0c09d72d09
Remove obsolete filters CacheHtml (filter & flow) and
...
compute_visible_text_filter_test.cc
2016-03-28 12:41:55 -04:00
Joshua Marantz
99efdd19c1
Move the contents of third_party/pagespeed/apache/speed_test.cc into
...
net/instaweb/rewriter/rewrite_driver_speed_test.cc, which is a proper
microbenchmark sharing the same infrastructure requirements.
apache/speed_test.cc was annoying because it was slow during unit
tests, and printed lots of error messages that slowed it further and
were distracting when running interactively. And its output was less
useful than speed-tests using the microbenchmark system.
2016-03-23 15:59:46 -04:00
Joshua Marantz
7bf8083314
Integrate AMP rewrite filter into RewriteDriver and test a few filters
...
explicitly:
1. AddInstrumentation, which needs to be completely disabled in AMP.
2. responsive_images & rewrite_domains, which need to be partially
disabled in AMP.
Partially addresses:
https://github.com/pagespeed/mod_pagespeed/issues/1263 . It's possible
that this commmit fully addresses that bug, but validation is needed.
2016-03-23 12:12:00 -04:00
Joshua Marantz
5676daafbe
Fix test infrastructure to always use AddFilters mechanism to add
...
enabled filters, rather than newing Filter classes and adding them to
the filter-list manually. This makes for more realistic tests.
2016-03-22 20:54:28 -04:00
Steve Hill
e83a6404c4
Log received experiment ID
2016-03-22 12:54:43 -04:00