• Resolved philipm92

    (@philipm92)


    Hi,

    For a few days I cannot use EZPlayer on any of my sites.
    For clarification: EZPlayer is a player that is embedded via a shortcode or HTML/javascript code.

    Thanks to the Thrive Theme support I could isolate the issue and as long as your plugin is activated I cannot use EZPlayer. This is a very recent issue since I didn’t have any problems with W3 Total cache and EZPlayer in the past.

    W3 Total Cache is most likely blocking access to the EZPlayer servers. Since the error message I’m getting is telling me that my site is not added as a domain in my settings, but it is (English translation):
    Sorry, this domain is not registered for EZPlayer videos. Please log into your EZPlayer account at https://ezplayer.net and add the domain under “My Profile”.

    I’ve disabled the plugin for now, so that people can access my sites and online courses without any issues.

    Kind regards,
    Philip

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @philipm92

    I am sorry about the issue you are having and I am happy to assist you with this.
    Are you using any plugin for this or have you manually added the shortcode/HTML/javascript code?
    Are you using any other caching/minify/CDN solution?
    Can you please re-enable W3 Total Cache and disable the settings one by one in Performance>General settings, save the settings and purge the cache after each setting is disabled and see which might be causing this. Start with minify first if enabled.
    Thank you!

    Thread Starter philipm92

    (@philipm92)

    Hello Marko,

    I’m using both html/javascript and the shortcode, depending on how many videos are on that specific site. In my online courses, I use the shortcode/plugin since there are many videos right after another.

    I’m not using any other caching plugin.

    It’s “browser cache” that’s causing the issue right now.

    Kind regards,
    Philip

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @philipm92

    Thank you for the information. Now we need to determine which option within the Browser cache might be causing this
    Can you please re-enable Browser Cache and save all settings, then go to Performance>Browser Cache, and disable the options in General sub-box one by one (the ones that are enabled)save the settings and purge the cache after each setting is disabled.
    Thank you!

    Thread Starter philipm92

    (@philipm92)

    I did that, now all settings in general are disabled one after another with purged cache and reloading the page, but the problem still persists.

    Edit: Once I disable the browser cache in general settings, even with everything in browser cache -> general disabled, it works perfectly.

    • This reply was modified 4 years, 1 month ago by philipm92.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @philipm92

    I’ve inspected your website and it appears that you already have some rules set for browser caching. That being said it means that there is a possibility of a conflict, maybe double compression or something similar.
    Can you please share your .htaccess file? (now when the Browser Cache is disabled in W3TC)
    Thank you!

    Thread Starter philipm92

    (@philipm92)

    # BEGIN Imagify: rewrite rules for webp
    <IfModule mod_setenvif.c>
    	# Vary: Accept for all the requests to jpeg, png, and gif.
    	SetEnvIf Request_URI "\.(jpg|jpeg|jpe|png|gif)$" REQUEST_image
    </IfModule>
    
    <IfModule mod_rewrite.c>
    	RewriteEngine On
    	RewriteBase /
    
    	# Check if browser supports WebP images.
    	RewriteCond %{HTTP_ACCEPT} image/webp
    
    	# Check if WebP replacement image exists.
    	RewriteCond %{REQUEST_FILENAME}.webp -f
    
    	# Serve WebP image instead.
    	RewriteRule (.+)\.(jpg|jpeg|jpe|png|gif)$ $1.$2.webp [T=image/webp,NC]
    </IfModule>
    
    <IfModule mod_headers.c>
    	Header append Vary Accept env=REQUEST_image
    </IfModule>
    # END Imagify: rewrite rules for webp
    
    # BEGIN Imagify: webp file type
    <IfModule mod_mime.c>
    	AddType image/webp .webp
    </IfModule>
    # END Imagify: webp file type
    
    <IfModule mod_deflate.c>
        <filesMatch "\.(js|css|html|php)$">
            SetOutputFilter DEFLATE
        </filesMatch>
    </IfModule>
    # Zugriff auf admin-ajax.php zulassen
    <Files admin-ajax.php>
    Order allow,deny
    Allow from all
    Satisfy any
    </Files>
    # BEGIN W3TC Page Cache core
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteCond %{HTTPS} =on
        RewriteRule .* - [E=W3TC_SSL:_ssl]
        RewriteCond %{SERVER_PORT} =443
        RewriteRule .* - [E=W3TC_SSL:_ssl]
        RewriteCond %{HTTP:X-Forwarded-Proto} =https [NC]
        RewriteRule .* - [E=W3TC_SSL:_ssl]
        RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]
        RewriteRule .* - [E=W3TC_PREVIEW:_preview]
        RewriteCond %{REQUEST_METHOD} !=POST
        RewriteCond %{QUERY_STRING} =""
        RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
        RewriteCond %{REQUEST_URI} \/$
        RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html" -f
        RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html" [L]
        RewriteCond %{REQUEST_METHOD} !=POST
        RewriteCond %{QUERY_STRING} =""
        RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
        RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.xml" -f
        RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.xml" [L]
    </IfModule>
    # END W3TC Page Cache core
    # BEGIN WordPress
    # Die Anweisungen (Zeilen) zwischen <code>BEGIN WordPress</code> und <code>END WordPress</code> sind
    # dynamisch generiert und sollten nur über WordPress-Filter geändert werden.
    # Alle Änderungen an den Anweisungen zwischen diesen Markierungen werden überschrieben.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    ############HTACCESS W4Y START############
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^denk-dich-leicht.at$ [OR]
    RewriteCond %{HTTP_HOST} ^www.denk-dich-leicht.at$
    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    </IfModule>
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
    #############HTACCESS W4Y END#############
    <IfModule mod_headers.c>
      <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
        Header set Access-Control-Allow-Origin "*"
      </FilesMatch>
    </IfModule>
    <ifmodule mod_headers.c="">
       SetEnvIf Origin "^(.*\.domain\.com)$" ORIGIN_SUB_DOMAIN=$1
       Header set Access-Control-Allow-Origin "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAIN
       Header set Access-Control-Allow-Methods: "*"
       Header set Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept, Authorization"
    </ifmodule>
    #disable hotlinking of images with forbidden or custom image option
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?denk-dich-leicht.at [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
    RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]
    # BEGIN DEFLATE COMPRESSION
    <IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE "application/atom+xml" \
    "application/javascript" \
    "application/json" \
    "application/ld+json" \
    "application/manifest+json" \
    "application/rdf+xml" \
    "application/rss+xml" \
    "application/schema+json" \
    "application/vnd.geo+json" \
    "application/vnd.ms-fontobject" \
    "application/x-font-ttf" \
    "application/x-javascript" \
    "application/x-web-app-manifest+json" \
    "application/xhtml+xml" \
    "application/xml" \
    "font/eot" \
    "font/opentype" \
    "image/bmp" \
    "image/svg+xml" \
    "image/vnd.microsoft.icon" \
    "image/x-icon" \
    "text/cache-manifest" \
    "text/css" \
    "text/html" \
    "text/javascript" \
    "text/plain" \
    "text/vcard" \
    "text/vnd.rim.location.xloc" \
    "text/vtt" \
    "text/x-component" \
    "text/x-cross-domain-policy" \
    "text/xml"
    </IfModule>
    # END DEFLATE COMPRESSION
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    </IfModule>
    # Use Browser Caching
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 month"
    ExpiresByType image/jpeg "access 1 month"
    ExpiresByType image/gif "access 1 month"
    ExpiresByType image/png "access 1 month"
    ExpiresByType image/x-icon "access 1 month"
    ExpiresByType text/css "access 1 week"
    ExpiresByType text/html "access 1 week"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType application/javascript "access plus 1 month"
    ExpiresByType application/x-javascript "access plus 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresDefault "access 1 month"
    </IfModule>
    # BEGIN WebP Express
    # WebP Express has placed its rules in your wp-content dir. Go there.
    # END WebP Express
    
    Thread Starter philipm92

    (@philipm92)

    I haven’t changed anything in my htaccess since at least 6 months now, and like I already wrote this issue with W3 Total Cache is very recent, so I’m pretty sure some update caused this.

    Thread Starter philipm92

    (@philipm92)

    come to think of it I do use Imagify, but this is for images only and the problem is clearly solved when I disable browse caching in your plugin

    Kind regards,
    Philip

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @philipm92

    As you can see in your .htaccess, you already have rules for browser caching.

    <IfModule mod_headers.c>
      <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
        Header set Access-Control-Allow-Origin "*"
      </FilesMatch>
    </IfModule>
    <ifmodule mod_headers.c="">
       SetEnvIf Origin "^(.*\.domain\.com)$" ORIGIN_SUB_DOMAIN=$1
       Header set Access-Control-Allow-Origin "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAIN
       Header set Access-Control-Allow-Methods: "*"
       Header set Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept, Authorization"
    </ifmodule>
    #disable hotlinking of images with forbidden or custom image option
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?denk-dich-leicht.at [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
    RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]
    # BEGIN DEFLATE COMPRESSION
    <IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE "application/atom+xml" \
    "application/javascript" \
    "application/json" \
    "application/ld+json" \
    "application/manifest+json" \
    "application/rdf+xml" \
    "application/rss+xml" \
    "application/schema+json" \
    "application/vnd.geo+json" \
    "application/vnd.ms-fontobject" \
    "application/x-font-ttf" \
    "application/x-javascript" \
    "application/x-web-app-manifest+json" \
    "application/xhtml+xml" \
    "application/xml" \
    "font/eot" \
    "font/opentype" \
    "image/bmp" \
    "image/svg+xml" \
    "image/vnd.microsoft.icon" \
    "image/x-icon" \
    "text/cache-manifest" \
    "text/css" \
    "text/html" \
    "text/javascript" \
    "text/plain" \
    "text/vcard" \
    "text/vnd.rim.location.xloc" \
    "text/vtt" \
    "text/x-component" \
    "text/x-cross-domain-policy" \
    "text/xml"
    </IfModule>
    # END DEFLATE COMPRESSION
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    </IfModule>
    # Use Browser Caching
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 month"
    ExpiresByType image/jpeg "access 1 month"
    ExpiresByType image/gif "access 1 month"
    ExpiresByType image/png "access 1 month"
    ExpiresByType image/x-icon "access 1 month"
    ExpiresByType text/css "access 1 week"
    ExpiresByType text/html "access 1 week"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType application/javascript "access plus 1 month"
    ExpiresByType application/x-javascript "access plus 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresDefault "access 1 month"
    </IfModule>

    So there is a conflict. As you already have the rules you do not need W3 Total Cache Browser Cache enabled. If however, you wish to user W3 Total Cache Browser Cache, you need to remove those rules.
    Thank you!

    Thread Starter philipm92

    (@philipm92)

    Does the browser cache from w3 total cache over any additional benefits?

    Kind regards,
    Philip

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @philipm92

    Judging by the performance of your website the existing rules are sufficient.
    Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘W3 Total Cache Blocks Ezplayer Access’ is closed to new replies.