WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: W3 Total Cache] Ending Trailing Slash Problem (4 posts)

  1. TDF
    Member
    Posted 3 years ago #

    Recently I was checking my Google Webmaster Tools and there were some HTML suggestions about duplicate title tags and meta descriptions on two URLs.

    When I checked which URLs are in question I saw that Google recognized two identical URLs as a different ones (one with and one without the ending trailing slash).

    I thought this is impossible since WordPress itself takes care of this by automatically adding a trailing slash at the end.

    So I started to investigate and figured out that W3TC makes this happen. But on a very specific and unique occasion.

    This is what I have found out:

    If I clear all the W3TC cache, quickly logout from WordPress, flush the cookies and cache from my browser, and open whichever page on my site without the trailing slash, the redirect will not happen and that page will be cached. If I open the same page but now with the trailing slash at the end, that page will be cached too.

    The conclusion: W3TC will cache the URL without the ending trailing slash if a unique first time visitor actually visits that page.

    Obviously W3TC .htaccess rules are preventing the wordpress redirection in this rear occasion.

    On the other hand it might be a host, theme, or any other specific issue in question.

    Can anyone else test this and confirm that it's happening?

    Thanks.

  2. TDF
    Member
    Posted 3 years ago #

  3. Frederick Townes
    Member
    Posted 3 years ago #

    You're using disk enhanced method of page caching correct? Please try the development version of the plugin available here: http://wordpress.org/extend/plugins/w3-total-cache/download/

  4. TDF
    Member
    Posted 3 years ago #

    Yes Frederick, I was using disk caching enhanced method and after switching to basic method, and setting the Browser HTMl caching with "cache with max-age"the issue was gone and the speed was dramatically improved.

    Now the site response time is cut in half which is great (around 400 ms - confirmed via pingdom.com).

    I was also getting some server issues on traffic peaks (I was considering to migrate) and that is solved too now.

    Basically the problems are gone. Redirections are fine and caching is fine and improved. Imagine that, using the disk caching (basic mode).

    So I think I'll wait for your next official release of W3TC plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic