Commit Graph

1098 Commits

Author SHA1 Message Date
Jeff Kaufman 57a0f1f6ee Revert "Fetcher: switch us back to the wget fetcher"
This reverts commit 8a8066ec02.

Couldn't reproduce the problems with the serf fetcher, so switching back to it.
2012-11-13 09:33:59 -05:00
Jeff Kaufman 5e0e9df211 Caching: File System Cache
Merging in Otto's file system cache code from pull request #46.
2012-11-12 16:57:03 -05:00
Jeff Kaufman 8a8066ec02 Fetcher: switch us back to the wget fetcher
Commit b1eb547275, which added the serf fetcher, broke fetching.  For now,
switch back to the wget fetcher.
2012-11-12 16:52:58 -05:00
Otto van der Schaaf 35869d7679 Merge pull request #32 from pagespeed/oschaaf-apr-serf-test
this branch links in apr, aprutil and serf, and adds the serf fetcher
2012-11-09 13:35:29 -08:00
Otto van der Schaaf b1eb547275 apr and serf: link in apr, apr-utils, and serf
- Links in apr, apr-utils, and serf.
- Replaces the wget fetcher with serf, which will be replaced later
on with the native fetcher.
2012-11-09 22:29:51 +01:00
Weibin Yao 2c57b78517 Released the connection attached with the pipe
This problem could cause the connection and event leak with Nginx.
2012-11-09 16:25:45 +08:00
Jeff Kaufman 5d488f3281 fix obselete comment 2012-11-08 17:24:23 -05:00
Jeff Kaufman db53d1f7c2 headers: use headers generated by pagespeed
Pagespeed puts headers in ngx_base_fetch->response_headers() and nginx calls
NgxBaseFetch::CollectHeaders to get them out, which wasn't implemented before.

Other minor changes in this commit:
 - whitespace fixes
 - ordering of includes
 - ngx_http_pagespeed_str_to_string_piece now takes its argument by value
2012-11-08 13:03:38 -05:00
Jeff Kaufman 39224fb283 options: don't run furious when we have custom options
If custom_options were set by GetQueryOptions(), don't run the experiment
framework. We don't want experiments to be contaminated with unexpected
settings.
2012-11-08 10:39:58 -05:00
Jeff Kaufman 7b8854db1a ngx_pagespeed: respect ModPagespeed=off
One of the things you can do with headers or query params is turn off mod
pagespeed:

    curl -D- 'http://localhost:8050/mod_pagespeed_example/combine_css.html'
    curl -D- 'http://localhost:8050/mod_pagespeed_example/combine_css.html\
      ?ModPagespeed=off'

We weren't respecting this fully before, still removing the etag, dropping the
content length, etc.

merge of pull request #28
2012-11-08 10:33:39 -05:00
Jeff Kaufman a5d6c7046e enable core filters by default instead of just cache extension 2012-11-08 10:32:43 -05:00
Jeff Kaufman 88c429a1aa show grep output 2012-11-07 18:02:01 -05:00
Jeff Kaufman 9b1a28e251 we don't append a comment anymore 2012-11-07 17:59:49 -05:00
Jeff Kaufman 4aa7b1f3f2 describe how to run tests 2012-11-07 17:53:20 -05:00
Jeff Kaufman 4fda597427 merge pull request #22 Support Custom Options
off by default, either of these commands below would fetch the example file with the filter on:

     curl 'http://localhost:8050/mod_pagespeed_example/add_instrumentation.html?ModPagespeedFilters=add_instrumentation'
     curl --header 'ModPagespeedFilters:add_instrumentation' 'http://localhost:8050/mod_pagespeed_example/add_instrumentation.html'

Compared to just

     curl http://localhost:8050/mod_pagespeed_example/add_instrumentation.html

the difference is that there's a chunk of complicated javascript at the end
added by the filter.
2012-11-07 11:15:29 -05:00
Jeff Kaufman 850b9b291f Merge pull request #15 Add content handler for .pagespeed resources
Pagespeed generates urls like:
    /script.js.pagespeed.ce.FjFFoSiQs4.js
when it moves a resource. Add a content handler that accepts
these requests and passes them through to pagespeed.
2012-11-06 10:03:14 -05:00
Jeff Kaufman 59a4aa00b0 Merge pull request #23 from pagespeed/jefftk-clear-last-modified
clear last modified
2012-11-06 06:55:40 -08:00
Jeff Kaufman 10cec75a6e clear last modified 2012-11-05 15:16:27 -05:00
Jeff Kaufman c08dee7157 Merge pull request #21 from pagespeed/jefftk-clear-etag
clear etag; pagespeed doesn't need them
2012-11-05 07:25:29 -08:00
Jeff Kaufman d91c8aaf6b Merge pull request #20
Add a 'X-Page-Speed: VERSION' header.
2012-11-05 10:23:52 -05:00
Jeff Kaufman eda3a913f9 Add script to run system test, remove temporary test files 2012-11-05 10:03:38 -05:00
Jeff Kaufman 6c8c4c07ca clear etag 2012-11-02 16:19:16 -04:00
Jeff Kaufman 0bb3cc9f31 Merge pull request #17 from pagespeed/jefftk-error-responses
Finalize properly on errors; don't rewrite error responses.
2012-11-01 15:03:28 -07:00
Jeff Kaufman 02cb718c27 If we have an error we need to finalize with NGX_HTTP_INTERNAL_SERVER_ERROR not NGX_ERROR, but fixing that turned up another bug where we were rewriting error responses, opening us up to infinitely recursive rewrites. 2012-11-01 16:38:07 -04:00
Jeff Kaufman b9fff21986 Rewrite pages asynchronously (branch jefftk-async-rewrite, pull request 11). 2012-11-01 10:31:12 -04:00
Jeff Kaufman 70e966e33c StdioFileSystem() now takes a Timer argument to its constructor 2012-10-30 11:32:27 -04:00
Jeff Kaufman 63a911266a document debug logging 2012-10-26 09:33:29 -04:00
Jeff Kaufman 88deea49a4 word wrapping 2012-10-25 17:29:12 -04:00
Jeff Kaufman acbecf02da make it clearer this doesn't work yet. 2012-10-25 17:27:50 -04:00
Jeff Kaufman 96c5f33d29 missing paren 2012-10-25 17:10:53 -04:00
Jeff Kaufman b87fb1685d include link to current status on wiki 2012-10-25 16:59:25 -04:00
Jeff Kaufman be48f5d745 indicate you don't have to install mod_pagespeed, just build it 2012-10-22 14:50:18 -04:00
Jeff Kaufman 87dfc31bb9 determine the full url for a request 2012-10-22 10:35:01 -04:00
Jeff Kaufman 1766acbffb Support Blocking Rewrite Flow
Run all responses through PSOL's rewriter in a blocking manner. While eventually we need to be using the asynchronous rewriting interface, this is a simple proof of concept. In test/expected/test.html you can see the effect of running this code on test/www/test/html
2012-10-18 10:18:05 -04:00
Jeff Kaufman 692956e1cb Document that we need to build against trunk 2012-10-17 15:05:43 -04:00
Ilya Grigorik bc101a7105 fix google group link 2012-10-16 10:42:29 -07:00
Ilya Grigorik 4f793b3bd9 add link to project google group 2012-10-11 16:30:11 -07:00
Jeff Kaufman 19b9a328f8 be clearer in the readme that we're not yet working 2012-10-10 18:07:02 -04:00
Jeff Kaufman a88290173b Minor readme cleanup: word wrapping, fixing links 2012-10-10 18:05:11 -04:00
Ben Noordhuis 775cc36de6 build: adapt link order to -Wl,--as-needed 2012-10-10 17:34:55 +02:00
Ilya Grigorik bd8e56aeea update readme with goals and status 2012-10-09 15:24:58 -07:00
Jeff Kaufman 25c54e1a60 modify the buffer as it passes 2012-10-03 17:39:00 -04:00
Jeff Kaufman a7e00b7a0d refactoring 2012-10-02 11:45:36 -04:00
Jeff Kaufman a531e56e96 add include dir for version string 2012-10-02 11:43:39 -04:00
Jeff Kaufman fbec99cbaf actually link against pagespeed_automatic.a, and properly test we're doing so 2012-10-02 11:30:47 -04:00
Jeff Kaufman 8d0decb332 no need for dirname/BASH_SOURCE hack -- can use ngx_addon_dir 2012-10-01 15:10:56 -04:00
Jeff Kaufman cff21ace3a Merged in changes from jefftk-experimental to:
- link in psol
 - manipulate the buffer chain to add a 'processed by us' comment
 - use chunked encoding to we don't have to update the headers when
   we change the length of the request
 - use c++ for the module
2012-10-01 14:43:23 -04:00
Ben Noordhuis 64a66cfb07 skeleton ngx_pagespeed module 2012-06-23 22:13:06 +02:00