Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # BEGIN W3TC Page Cache cache
- location ~ /wptest/wp-content/cache/page_enhanced.*html$ {
- add_header X-Powered-By "W3 Total Cache/0.9.3";
- add_header Vary "Accept-Encoding, Cookie";
- }
- location ~ /wptest/wp-content/cache/page_enhanced.*gzip$ {
- gzip off;
- types {}
- default_type text/html;
- add_header X-Powered-By "W3 Total Cache/0.9.3";
- add_header Vary "Accept-Encoding, Cookie";
- add_header Content-Encoding gzip;
- }
- # END W3TC Page Cache cache
- # BEGIN W3TC Browser Cache
- gzip on;
- gzip_types text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;
- location ~ \.(css|htc|js|js2|js3|js4)$ {
- add_header X-Powered-By "W3 Total Cache/0.9.3";
- }
- location ~ \.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml)$ {
- add_header X-Powered-By "W3 Total Cache/0.9.3";
- }
- location ~ \.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ {
- add_header X-Powered-By "W3 Total Cache/0.9.3";
- }
- # END W3TC Browser Cache
- # BEGIN W3TC Page Cache core
- set $w3tc_rewrite 1;
- if ($request_method = POST) {
- set $w3tc_rewrite 0;
- }
- if ($query_string != "") {
- set $w3tc_rewrite 0;
- }
- if ($request_uri !~ \/$) {
- set $w3tc_rewrite 0;
- }
- if ($http_cookie ~* "(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in)") {
- set $w3tc_rewrite 0;
- }
- set $w3tc_ssl "";
- if ($scheme = https) {
- set $w3tc_ssl _ssl;
- }
- set $w3tc_enc "";
- if ($http_accept_encoding ~ gzip) {
- set $w3tc_enc _gzip;
- }
- if (!-f "$document_root/wptest/wp-content/cache/page_enhanced/$http_host/$request_uri/_index$w3tc_ssl.html$w3tc_enc") {
- set $w3tc_rewrite 0;
- }
- if ($w3tc_rewrite = 1) {
- rewrite .* "/wptest/wp-content/cache/page_enhanced/$http_host/$request_uri/_index$w3tc_ssl.html$w3tc_enc" last;
- }
- # END W3TC Page Cache core
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement