572f59299e
Check options->IsAllowed() before rewriting html. (#1225)
Otto van der Schaaf
2016-07-15 20:41:19 +02:00
087f0ed7bb
Add MatchesProto testing predicate.
Steve Hill
2016-07-15 12:32:03 -04:00
b8aa5b4efa
cache-cleaning: allow people to turn it off
Jeff Kaufman
2016-07-14 13:13:37 -04:00
6ff9ecd394
Make sure not to call PthreadSharedMem::Terminate() --- and other "we're done, delete all the statics" --- code earlier than ~ApacheRewriteDriverFactory, which includes ShutDown and code calling PthreadSharedMem::DestroySegment, as otherwise it will spam logs with warnings about "Attempt to destroy unknown SHM segment" (ref https://github.com/pagespeed/mod_pagespeed/issues/1349)
Maks Orlovich
2016-07-13 13:37:22 -04:00
87a01b9e92
Replace DummyController with CentralControllerRpcServer. Currently this starts a gRPC server but doesn't actually handle any events yet.
Steve Hill
2016-07-12 17:01:11 -04:00
099329f561
beacons: allow people to choose how long beacons are valid for
Jeff Kaufman
2016-07-12 16:30:16 -04:00
a0c46bd44d
pagespeed-libraries: add jquery 3.1.0
Jeff Kaufman
2016-07-12 16:29:15 -04:00
3be157c6b9
add grpc.gyp so that grpc will actually build
Jeffrey Crowell
2016-07-12 14:17:04 -04:00
c7d0c2ea9e
update grpc to 0.15
Jeffrey Crowell
2016-07-12 14:15:28 -04:00
ebe7c61f4f
Make ngx_pagespeed behave like mod_pagespeed with regard to Flushing (#1217)
Otto van der Schaaf
2016-07-12 18:26:38 +02:00
02de03e825
Merge straightforward forwarding of flushes in ProxyFetch from Otto's https://github.com/pagespeed/mod_pagespeed/pull/1336 The tests are tweaked slightly to work with fcgid on Apache and some additional test environments.
Maks Orlovich
2016-07-12 12:15:49 -04:00
8184c8f99f
dns-prefetch: whitelist Safari 6+
Jeff Kaufman
2016-07-11 13:21:32 -04:00
caafe1c175
Fix FastWildcardGroup bug. We insert all-wildcard patterns in *reverse* order, and should match them forwards as a result. Add a couple of tests beyond Steve's initial repro.
Jan-Willem Maessen
2016-07-08 14:28:41 -04:00
ef83c507c9
Provide URL information in image filter debug messages.
Maks Orlovich
2016-07-08 12:54:49 -04:00
727d5f75ce
Test that LRU cache works as expected when marked "unhealthy"
Egor Suvorov
2016-07-07 16:21:51 -04:00
83aec21bf9
Teach CssFilter to report dependencies on @import'ed stylesheets.
Maks Orlovich
2016-07-07 15:45:44 -04:00
d33c56075f
insert-ga: accept dc.js as a synonym for ga.js
Jeff Kaufman
2016-07-07 11:11:37 -04:00
e542347a20
Fix for when there is only server-level configuration (#1218)
Otto van der Schaaf
2016-07-06 16:13:05 +02:00
b1d9fbf544
Fix segfault when there's no http{} block in nginx.conf (#1221)
Otto van der Schaaf
2016-07-06 16:12:04 +02:00
703060b318
inliners: don't inline gzipped text
Jeff Kaufman
2016-07-06 10:08:28 -04:00
a2eb16e363
Improve how srcset locations are described in text. (These show up in debug logs --- I was expecting them to show up in debug comments as well, and while that didn't work out, no reason not to keep this).
Maks Orlovich
2016-07-01 14:00:50 -04:00
afa1852e37
add fortify source to the cflags and cxxflags
Jeffrey Crowell
2016-06-30 12:20:13 -04:00
428b7e044e
Basic support for rewriting <img srcset>
Maks Orlovich
2016-06-29 17:48:59 -04:00
8ab12c589a
system_test: reorder tests to keep simple ones first
Jeff Kaufman
2016-06-28 12:57:44 -04:00
08e7b80360
SerfUrlAsyncFetcher should not spin on EAGAIN from read and generally correctly handle errors.
Steve Hill
2016-06-27 17:01:09 -04:00
d43f40b3c7
Merge hop-by-hop handling improvements by Otto van der Schaaf: * Adds Connection: to the list of headers that contain fields separated by "," * Marks Alt-Svc and Alternate-Protocol as hop-by-hop, so we will treat them as such. * Adds sanitization of headers marked as hop-by-hop in Connection: headers as per rfc. * Moves initialization of 'AtExitManager' out of the css filter to the more central ProcessContext as this change adds another dependancy on it -- and we must initialize it exactly once. * Changes the header definitions to be lazy initialized to avoid extra allocations when manipulating headers, while avoiding static initialization. (From https://github.com/pagespeed/mod_pagespeed/pull/1195)
Maks Orlovich
2016-06-27 14:40:18 -04:00
490e4cf480
preloading: switch defer_js to rel=preload
Jeff Kaufman
2016-06-27 14:21:25 -04:00
31fd972a4e
Add tests for the size of rewritten PNG/JPEG images
Huibao Lin
2016-06-27 11:20:44 -04:00
50d3e18f9d
sync for internal tweaks
Joshua Marantz
2016-06-27 09:29:40 -04:00
4f3957d698
Loosen up some of the size threshold comparisons to be slightly less brittle to changes in webp's compressor.
Joshua Marantz
2016-06-27 09:00:06 -04:00
3d10186215
url-valued-attributes: support css
Jeff Kaufman
2016-06-24 16:53:51 -04:00
c8dc73fec4
Also add 'public' to non-private cache-control if request has via:*google*.
Joshua Marantz
2016-06-26 23:41:26 -04:00
44626a4121
url-valued-attributes: tests for mod_pagespeed/f2f0075
Jeff Kaufman
2016-06-24 16:54:23 -04:00
dfdd05ad64
Add test that verifies SerfUrlAsyncFetcher spams read on a hanging socket.
Steve Hill
2016-06-24 14:10:08 -04:00
65ba39467c
image-inline: add missing test file
Jeff Kaufman
2016-06-23 13:43:59 -04:00
edf58c5114
pagespeed_libraries: added angular 1.4.12
Jeff Kaufman
2016-06-23 07:02:29 -04:00
34dc740acf
Enforce "must_reduce_bytes" options in image optimization
Huibao Lin
2016-06-22 15:01:16 -04:00
4f1c8cdda8
Add three dot help button.
Jud Porter
2016-06-22 13:47:23 -04:00
6f403aa6c5
Hopefully fix the flake in SimpleBufferedApacheFetchTest.Success flake jcrowell noticed on Travis. "Hopefully" since I can't reproduce it, so while I understand the logic of events, I can't exclude dumb typos. (https://github.com/pagespeed/mod_pagespeed/issues/1322).
Maks Orlovich
2016-06-22 10:59:32 -04:00
991c09faca
Merge branch 'master' of github.com:pagespeed/mod_pagespeed
Huibao Lin
2016-06-21 16:59:13 -04:00
aaaa00bb67
Reformat code
Huibao Lin
2016-06-21 16:57:30 -04:00
35ce47fed9
Add a method to add 'public' to response-headers if via:*google is present in request-headers.
Joshua Marantz
2016-06-21 16:45:41 -04:00
d67bc4f4ce
Generalize the expected results to allow error message variation depending on implementation rev.
Joshua Marantz
2016-06-15 21:52:37 -04:00
f602d42ebd
peleyal : Fixes a CSS bug found during testing:
Joshua Marantz
2016-06-15 21:50:49 -04:00
33b5b25ad8
Regold size of the rewritten WebP images
Huibao Lin
2016-06-15 09:54:56 -04:00
5f6ff53690
Fix flattening when something imported as @import "foo" all; is included in something w/o explicitly restricted media. Key thing to note here: empty media_ means everything, and we're doing intersection, so there is a room for confusion between nothing and everything.
Maks Orlovich
2016-06-10 16:26:56 -04:00
1bb10ec599
Suppress controller warnings in test, fix up kill signals (#1210)
hillsp
2016-06-10 14:54:49 -04:00
36c29fd768
Re-factor ControllerManager to accept an interface that specifies behavior.
Steve Hill
2016-06-10 14:54:17 -04:00
4510f84822
Allow error writer to actually be set for collecting css minify errors.
Steve Hill
2016-06-10 13:52:40 -04:00
757be8dd83
Regold data for image_optimizer_test
Huibao Lin
2016-06-09 14:40:10 -04:00
c4fc99c5ae
README.md: fix link in travis badge
Jeffrey Crowell
2016-06-08 13:06:25 -04:00
4c09bac0c4
svn of depot_tools is going away, migrate to git. (#1211)
Jeffrey Crowell
2016-06-08 13:05:22 -04:00
6b0cd0c3aa
Finish checking in system-test changes for htaccess overrides of disallow.
Joshua Marantz
2016-06-02 10:11:49 -04:00
4d3acd9cd3
Add testing for htaccess overrides with Disallow/Allow.
Joshua Marantz
2016-06-02 09:55:14 -04:00
e3c7bc9161
Don't require URLs to be on proxy domain when using an input-only proxy extent UrlNamer. Should fix some CHECK failures I saw in measurement mode, due to us being unable to fetch our own OutputResources.
Maks Orlovich
2016-06-02 09:46:50 -04:00
5c48690979
Fix build with -O2 on gcc-4.8; it was complaining about potentially unitialized image_format.
Maks Orlovich
2016-06-01 15:26:29 -04:00
b85b60d79d
update boringssl gypi and asm routines from latest chromium stable.
Jeffrey Crowell
2016-06-01 14:31:16 -04:00
0a938a174e
Don't print out info messages about the size not changing.
Joshua Marantz
2016-06-01 11:08:16 -04:00
1d2efe0b05
Add ImageOptimizer which applies all optimizations to all image formats
Huibao Lin
2016-05-31 16:26:55 -04:00
03d69e53b1
Update for API change: kProcessScope is about to become kLegacyProcessScope (#1205)
Maks Orlovich
2016-05-30 12:52:41 -04:00
f4562ad914
Rename kProcessScope -> kLegacyProcessScope to make it less likely it would be used by mistake in new code. (Also needs nginx to be updated..)
Maks Orlovich
2016-05-30 12:51:41 -04:00
ca56590649
pull depot_tools from chromium git instead of svn
Jeffrey Crowell
2016-05-25 11:32:27 -04:00
9206b14768
build with -j3 on travis so we don't take up so much time.
Jeffrey Crowell
2016-05-25 10:30:52 -04:00
971c51256d
add php to the travis tests
Jeffrey Crowell
2016-05-24 16:23:56 -04:00
cd2cf872db
Require DISABLE_PHP_TESTS instead of auto-disabling if PHP is broken.
Steve Hill
2016-05-24 15:35:32 -04:00
38d8a01e6b
Refactor utilities for testing images
Huibao Lin
2016-05-24 11:28:57 -04:00
c374f48e6f
Move and refactor the method for comparing animated images
Huibao Lin
2016-05-24 09:15:29 -04:00
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).
Maks Orlovich
2016-05-23 16:48:45 -04:00
020028e72b
Remove workaround in computing of central controller port, now we can consistently pull it out of default_options()
Maks Orlovich
2016-05-20 13:25:32 -04:00
15c6f7c345
Make sure RewriteDriverFactory::default_options gets the top-level proces-scope options. (#1203)
Maks Orlovich
2016-05-20 10:07:24 -04:00
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.
Maks Orlovich
2016-05-19 16:58:05 -04:00
985bb49b2b
Show more detail in log on brotli errors (eustas)
Joshua Marantz
2016-05-18 08:47:14 -04:00
faaf624ff9
Give the measurement proxy option proper scope; it's not for <Directory> use (doesn't do anything there anyway).
Maks Orlovich
2016-05-17 12:21:49 -04:00
6f90e5988e
Rollback removal of config info from MeasurementProxyUrlNamer.
Maks Orlovich
2016-05-17 11:23:55 -04:00