File pagespeed.conf of Package nginx_debug (Revision 758317a991ba611bd32bbf6d07b29d5b)
Currently displaying revision 758317a991ba611bd32bbf6d07b29d5b, show latest
1
pagespeed off;
2
3
4
# Configuring PageSpeed Filters
5
pagespeed RewriteLevel PassThrough;
6
7
# Needs to exist and be writable by nginx. Use tmpfs for best performance.
8
pagespeed MemcachedServers "127.0.0.1:11211";
9
pagespeed FileCachePath /var/ngx_pagespeed_cache;
10
11
# PageSpeed Admin
12
pagespeed StatisticsPath /ngx_pagespeed_statistics;
13
pagespeed GlobalStatisticsPath /ngx_pagespeed_global_statistics;
14
pagespeed MessagesPath /ngx_pagespeed_message;
15
pagespeed ConsolePath /pagespeed_console;
16
pagespeed AdminPath /pagespeed_admin;
17
pagespeed GlobalAdminPath /pagespeed_global_admin;
18
19
# PageSpeed Cache Purge
20
pagespeed EnableCachePurge on;
21
pagespeed PurgeMethod PURGE;
22
23
24
# Ensure requests for pagespeed optimized resources go to the pagespeed handler
25
# and no extraneous headers get set.
26
location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
27
add_header "" "";
28
}
29
30
31
# HTTPS Support
32
# pagespeed FetchHttps enable;
33
34
# PageSpeed Filters
35
# CSS Minification
36
# pagespeed EnableFilters combine_css,rewrite_css;
37
38
# JS Minification
39
# pagespeed EnableFilters combine_javascript,rewrite_javascript;
40
41
# Images Optimization
42
#pagespeed EnableFilters lazyload_images;
43
#pagespeed EnableFilters rewrite_images;
44
#pagespeed EnableFilters convert_jpeg_to_progressive,convert_png_to_jpeg,convert_jpeg_to_webp,convert_to_webp_lossless;
45
46
# Remove comments from HTML
47
#pagespeed EnableFilters remove_comments;
48
# Remove WHITESPACE from HTML
49
#pagespeed EnableFilters collapse_whitespace;
50
51
52
# CDN Support
53
#pagespeed MapRewriteDomain cdn.example.com www.example.com;