Commit 907c57a 1 parent a7bef40 commit 907c57a Copy full SHA for 907c57a
File tree 1 file changed +25
-0
lines changed
1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -1044,6 +1044,31 @@ http {
1044
1044
pagespeed DisableFilters remove_comments,add_instrumentation;
1045
1045
}
1046
1046
1047
+ # Test that pagespeed is disabled when sendfile headers are present.
1048
+ server {
1049
+ listen @@SECONDARY_PORT@@;
1050
+ listen [::]:@@SECONDARY_PORT@@;
1051
+ server_name uses-sendfile.example.com;
1052
+ pagespeed FileCachePath "@@SECONDARY_CACHE@@";
1053
+ pagespeed EnableFilters inline_javascript,rewrite_javascript;
1054
+ add_header 'X-Sendfile' 'blablabla';
1055
+ }
1056
+ server {
1057
+ listen @@SECONDARY_PORT@@;
1058
+ listen [::]:@@SECONDARY_PORT@@;
1059
+ server_name doesnt-sendfile.example.com;
1060
+ pagespeed FileCachePath "@@SECONDARY_CACHE@@";
1061
+ pagespeed EnableFilters inline_javascript,rewrite_javascript;
1062
+ }
1063
+ server {
1064
+ listen @@SECONDARY_PORT@@;
1065
+ listen [::]:@@SECONDARY_PORT@@;
1066
+ server_name uses-xaccelredirect.example.com;
1067
+ pagespeed FileCachePath "@@SECONDARY_CACHE@@";
1068
+ pagespeed EnableFilters inline_javascript,rewrite_javascript;
1069
+ add_header 'X-Accel-Redirect' 'blablabla';
1070
+ }
1071
+
1047
1072
# Proxy + IPRO a gzip'd file for testing Issue 896.
1048
1073
server {
1049
1074
listen @@SECONDARY_PORT@@;
You can’t perform that action at this time.
0 commit comments