Merge pull request #714 from pagespeed/jmaessen-prepare-release-1.8.31.3-beta
Jmaessen prepare release 1.8.31.3 beta
This commit is contained in:
@@ -37,11 +37,11 @@ recompiling Tengine](https://github.com/pagespeed/ngx_pagespeed/wiki/Using-ngx_p
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd ~
|
$ cd ~
|
||||||
$ wget https://github.com/pagespeed/ngx_pagespeed/archive/v1.8.31.2-beta.zip
|
$ wget https://github.com/pagespeed/ngx_pagespeed/archive/v1.8.31.3-beta.zip
|
||||||
$ unzip v1.8.31.2-beta.zip # or unzip v1.8.31.2-beta
|
$ unzip v1.8.31.3-beta.zip # or unzip v1.8.31.3-beta
|
||||||
$ cd ngx_pagespeed-1.8.31.2-beta/
|
$ cd ngx_pagespeed-1.8.31.3-beta/
|
||||||
$ wget https://dl.google.com/dl/page-speed/psol/1.8.31.2.tar.gz
|
$ wget https://dl.google.com/dl/page-speed/psol/1.8.31.3.tar.gz
|
||||||
$ tar -xzvf 1.8.31.2.tar.gz # expands to psol/
|
$ tar -xzvf 1.8.31.3.tar.gz # expands to psol/
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Download and build nginx:
|
3. Download and build nginx:
|
||||||
@@ -52,7 +52,7 @@ recompiling Tengine](https://github.com/pagespeed/ngx_pagespeed/wiki/Using-ngx_p
|
|||||||
$ wget http://nginx.org/download/nginx-1.6.0.tar.gz
|
$ wget http://nginx.org/download/nginx-1.6.0.tar.gz
|
||||||
$ tar -xvzf nginx-1.6.0.tar.gz
|
$ tar -xvzf nginx-1.6.0.tar.gz
|
||||||
$ cd nginx-1.6.0/
|
$ cd nginx-1.6.0/
|
||||||
$ ./configure --add-module=$HOME/ngx_pagespeed-1.8.31.2-beta
|
$ ./configure --add-module=$HOME/ngx_pagespeed-1.8.31.3-beta
|
||||||
$ make
|
$ make
|
||||||
$ sudo make install
|
$ sudo make install
|
||||||
```
|
```
|
||||||
@@ -95,7 +95,7 @@ To confirm that the module is loaded, fetch a page and check that you see the
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ curl -I 'http://localhost:8050/some_page/' | grep X-Page-Speed
|
$ curl -I 'http://localhost:8050/some_page/' | grep X-Page-Speed
|
||||||
X-Page-Speed: 1.8.31.2-...
|
X-Page-Speed: 1.8.31.3-...
|
||||||
```
|
```
|
||||||
|
|
||||||
Looking at the source of a few pages you should see various changes, such as
|
Looking at the source of a few pages you should see various changes, such as
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ if [ "$mod_pagespeed_dir" = "unset" ] ; then
|
|||||||
echo " You need to separately download the pagespeed library:"
|
echo " You need to separately download the pagespeed library:"
|
||||||
echo ""
|
echo ""
|
||||||
echo " $ cd /path/to/ngx_pagespeed"
|
echo " $ cd /path/to/ngx_pagespeed"
|
||||||
echo " $ wget https://dl.google.com/dl/page-speed/psol/1.8.31.2.tar.gz"
|
echo " $ wget https://dl.google.com/dl/page-speed/psol/1.8.31.3.tar.gz"
|
||||||
echo " $ tar -xzvf 1.8.31.2.tar.gz # expands to psol/"
|
echo " $ tar -xzvf 1.8.31.3.tar.gz # expands to psol/"
|
||||||
echo ""
|
echo ""
|
||||||
echo " Or see the installation instructions:"
|
echo " Or see the installation instructions:"
|
||||||
echo " https://github.com/pagespeed/ngx_pagespeed#how-to-build"
|
echo " https://github.com/pagespeed/ngx_pagespeed#how-to-build"
|
||||||
|
|||||||
@@ -2592,12 +2592,15 @@ OUTFILE=$OUTDIR/etags
|
|||||||
$WGET -o $OUTFILE -O /dev/null --header "If-None-Match: $ETAG" $URL
|
$WGET -o $OUTFILE -O /dev/null --header "If-None-Match: $ETAG" $URL
|
||||||
check fgrep -q "awaiting response... 304" $OUTFILE
|
check fgrep -q "awaiting response... 304" $OUTFILE
|
||||||
|
|
||||||
start_test PageSpeed resources should have a content length.
|
start_test PageSpeed CSS loaded in fallback mode is always chunked
|
||||||
|
# This is because the domains in urls may be rewritten, changing content
|
||||||
|
# length from what's in the cache.
|
||||||
URL="$EXAMPLE_ROOT/styles/W.rewrite_css_images.css.pagespeed.cf.Hash.css"
|
URL="$EXAMPLE_ROOT/styles/W.rewrite_css_images.css.pagespeed.cf.Hash.css"
|
||||||
OUT=$($WGET_DUMP --save-headers $URL)
|
fetch_until -save $URL "egrep -c Transfer-Encoding:" 1 "--save-headers"
|
||||||
check_from "$OUT" egrep -q $'^Content-Length: ([0-9])*\r$'
|
OUT=$(cat $FETCH_UNTIL_OUTFILE)
|
||||||
check_not_from "$OUT" egrep -iq $'^Transfer-Encoding: chunked\r$'
|
check_from "$OUT" egrep -iq $'^Transfer-Encoding: chunked\r$'
|
||||||
check_not_from "$OUT" egrep -iq $'^Connection: close\r$'
|
check_not_from "$OUT" egrep -iq '^Content-Length:'
|
||||||
|
check_not_from "$OUT" egrep -iq '^Connection: close'
|
||||||
|
|
||||||
start_test Downstream cache integration caching headers.
|
start_test Downstream cache integration caching headers.
|
||||||
URL="http://downstreamcacheresource.example.com/mod_pagespeed_example/images/"
|
URL="http://downstreamcacheresource.example.com/mod_pagespeed_example/images/"
|
||||||
|
|||||||
Reference in New Issue
Block a user