Merge pull request #967 from pagespeed/jmarantz-psoff-dir-on

nginx system test changes to repro issue https://github.com/pagespeed…
This commit is contained in:
jmarantz
2015-05-19 11:12:14 -04:00
2 changed files with 24 additions and 2 deletions
+3 -1
View File
@@ -301,7 +301,9 @@ BEACON_HANDLER="ngx_pagespeed_beacon"
STATISTICS_URL=http://$PRIMARY_HOSTNAME/ngx_pagespeed_statistics STATISTICS_URL=http://$PRIMARY_HOSTNAME/ngx_pagespeed_statistics
# An expected failure can be indicated like: "~In-place resource optimization~" # An expected failure can be indicated like: "~In-place resource optimization~"
PAGESPEED_EXPECTED_FAILURES="" PAGESPEED_EXPECTED_FAILURES="
~Cache purging with PageSpeed off in vhost, but on in directory.~
"
if [ "$POSITION_AUX" = "true" ] ; then if [ "$POSITION_AUX" = "true" ] ; then
PAGESPEED_EXPECTED_FAILURES+=" PAGESPEED_EXPECTED_FAILURES+="
+21 -1
View File
@@ -1243,13 +1243,33 @@ http {
pagespeed EnableCachePurge on; pagespeed EnableCachePurge on;
pagespeed PurgeMethod PURGE; pagespeed PurgeMethod PURGE;
root "@@SERVER_ROOT@@"; root "@@SERVER_ROOT@@/mod_pagespeed_test/purge";
pagespeed FileCachePath "@@FILE_CACHE@@_purge"; pagespeed FileCachePath "@@FILE_CACHE@@_purge";
pagespeed DisableFilters add_instrumentation; pagespeed DisableFilters add_instrumentation;
pagespeed RewriteLevel PassThrough; pagespeed RewriteLevel PassThrough;
pagespeed EnableFilters rewrite_css; pagespeed EnableFilters rewrite_css;
} }
server {
listen @@SECONDARY_PORT@@;
listen [::]:@@SECONDARY_PORT@@;
server_name psoff-dir-on.example.com;
# Test purging individual URLs without flushing the entire metadata cache.
pagespeed EnableCachePurge on;
pagespeed PurgeMethod PURGE;
root "@@SERVER_ROOT@@/mod_pagespeed_test/purge";
pagespeed FileCachePath "@@FILE_CACHE@@_dir_on";
pagespeed DisableFilters add_instrumentation;
pagespeed RewriteLevel PassThrough;
pagespeed EnableFilters rewrite_css;
pagespeed off;
location / {
pagespeed on;
}
}
server { server {
listen @@SECONDARY_PORT@@; listen @@SECONDARY_PORT@@;
listen [::]:@@SECONDARY_PORT@@; listen [::]:@@SECONDARY_PORT@@;