• Resolved LiamE

    (@liame)


    Hi, first of all, thank you for your great plugin. It’s really fast and simple, as it should be. I got it working really easy, I just needed to modify the https redirects, since I’m using Cloudflare’s CDN + their flexible free SSL. Your plugin is trying to force himself to https but it’s causing redirect loop. 🙂

    The (only) problem I’m having is that the homepage is getting served by PHP. I’d really love to fix it since the homepage get’s obviously most of the heat. From the source code I understand the file get’s served via php and the via php html comment get’s added if the rewrite rule doesn’t work.

    These are the rewrite rules:

    # BEGIN WpFastestCache
    <IfModule mod_rewrite.c>
    	RewriteEngine On
    	RewriteBase /
    	AddDefaultCharset UTF-8
    
    	#RewriteCond %{HTTP_HOST} ^www.xxx.com
    	#RewriteRule ^(.*)$ https://xxx.com/$1 [R=301,L]
    	#RewriteCond %{HTTPS} !=on
    	#RewriteCond %{HTTP_HOST} ^xxx.com
    	#RewriteRule ^(.*)$ https\:\/\/xxx\.com\/$1 [R=301,L]
    
    	RewriteCond %{REQUEST_METHOD} !POST
    	RewriteCond %{QUERY_STRING} !.*=.*
    	RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
    	RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
    	RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f [or]
    	RewriteCond /var/www/xxx.com/wp-content/cache/all/$1/index.html -f
    	RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L]
    </IfModule>
    
    <FilesMatch "\.(html|htm)$">
    	FileETag None
    	<ifModule mod_headers.c>
    		Header unset ETag
    		Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    		Header set Pragma "no-cache"
    		Header set Expires "Mon, 29 Oct 1923 20:30:00 GMT"
    	</ifModule>
    </FilesMatch>
    # END WpFastestCache

    Do you have any idea why the rewrite for homepage fails?

    Really great plugin otherwise, will test it bit further and try to get the homepage served also statically and will donate 🙂 (don’t need the pro features but you deserve it)

    https://ww.wp.xz.cn/plugins/wp-fastest-cache/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Emre Vona

    (@emrevona)

    You can solve the redirection loop with following post.

    http://www.wpfastestcache.com/features/redirect-loop/

    Thread Starter LiamE

    (@liame)

    I am aware of the redirect loop fix, that was not the problem.

    The problem is why the homepage is served with php, not with mod_rewrite…

    Plugin Author Emre Vona

    (@emrevona)

    This is the solution for this issue. The cache is not served via apache in some server setups. We couldn’t find the solution for this and in the end we decided to serve via php.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘"via php" (only homepage)’ is closed to new replies.