明确告诉从磁盘哪里加载资源

pagespeed LoadFromFile "https://www.example.com/static/" "/path/to/static/";

禁止加载目录下全部文件

pagespeed LoadFromFileRule Disallow /var/www/cgi-bin/

禁止加载某类型文件

pagespeed LoadFromFileRuleMatch Disallow \ .php$;

允许加载某类型文件

pagespeed LoadFromFileRuleMatch allow \.css$;

禁止优化

pagespeed Disallow "*/jquery-ui-1.8.2.custom.min.js";

允许优化

pagespeed Allow "*/styles/*.css";

直接抓取https资源

pagespeed FetchHttps enable;

配置密钥

pagespeed SslCertDirectory "/path/to/SslCertDirectory/";
pagespeed SslCertFile "/path/to/SslCertDirectory/sslfile.cer";

配置缓存存放的地方和保存时间和清理周期

pagespeed FileCachePath  "/dev/shm/pagespeed_cache/";
pagespeed FileCacheSizeKb 102400;
pagespeed FileCacheCleanIntervalMs 3600000;
pagespeed FileCacheInodeLimit 500000;