Fancybox plugin not working with W3 Total Cache
-
A video in a fancybox not working with w3Tc plugin on nginx. My main conf file for nginx is:
server { listen 80; root /var/www/xxxxxxx.com; index index.php; server_name xxxxxxx.com *.xxxxxxx.com; location = /favicon.ico {log_not_found off;access_log off;} location = /robots.txt {allow all;log_not_found off;access_log off;} include /var/www/xxxxxxxx.com/nginx.conf; if (!-e $request_filename) { rewrite /wp-admin$ $scheme://$host$uri/ permanent; rewrite ^(/[^/]+)?(/wp-.*) $2 last; rewrite ^(/[^/]+)?(/.*\.php) $2 last; } location / { try_files $uri $uri/ /index.php?$args /new/index.php?$args; } location ~ \.php$ { fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /var/www/xxxxxxx.com$fastcgi_script_name; include fastcgi_params; } # location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ { # access_log off; log_not_found off; expires max; # } }
And my w3Tc nginx file in my wp root is:
# BEGIN W3TC Page Cache cache location ~ /wp-content/cache/page_enhanced.*html$ { add_header Vary Cookie; } # END W3TC Page Cache 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|wptouch_switch_toggle)") { set $w3tc_rewrite 0; } if ($http_cookie ~* "(w3tc_preview)") { set $w3tc_rewrite _preview; } if (!-f "$document_root/wp-content/cache/page_enhanced/$http_host/$request_uri/_index$w3tc_rewrite.html") { set $w3tc_rewrite 0; } if ($w3tc_rewrite = 1) { rewrite .* "/wp-content/cache/page_enhanced/$http_host/$request_uri/_index$w3tc_rewrite.html" last; } # END W3TC Page Cache core
https://www.ads-software.com/plugins/easy-fancybox/
Any suggestions?
- The topic ‘Fancybox plugin not working with W3 Total Cache’ is closed to new replies.