W3 Total Cache
[resolved] minify breaks query with & (2 posts)

  1. RavanH
    Posted 5 years ago #

    Hi Frederick and Thaya,

    I came across a peculiar thing on someone elses WPMS site running W3TC with minify enabled in combo with XML Sitemap Feed. Another site was using WP Minify and reported the same problem but I cannot verify this since these are not my sites and I am not using either of these plugins on any of mine... but this seems to be happening:

    The sitemap on that site http://journalxtra.com/sitemap.xml which is produced by my plugin, works fine and the source is indeed minified. But here's the thing. the sitemap xml has an xsl stylesheet attached with some extra strings appended. The URL is http://journalxtra.com/wp-content/plugins/xml-sitemap-feed/sitemap.xsl.php?v=3.7.4&url=http://journalxtra.com/wp-content/plugins/xml-sitemap-feed which results in a 404 page.

    So I did some testing and found that the following URLs do result in the xsl file being served.

    1. http://journalxtra.com/wp-content/plugins/xml-sitemap-feed/sitemap.xsl.php
    2. http://journalxtra.com/wp-content/plugins/xml-sitemap-feed/sitemap.xsl.php?v=3.7.4
    3. http://journalxtra.com/wp-content/plugins/xml-sitemap-feed/sitemap.xsl.php?v=3.7.4&url=journalxtra.com/wp-content/plugins/xml-sitemap-feed (notice 1. the non-urlencoded & instead of & and 2. the missing http:// after url= )

    Other combinations using either that http:// or an URL Encoded & result in a 404 page again... Now I can go and use the unencoded & but that will invalidate the XML Sitemap in any online validator (making me look silly ;) ) so I was wondering:

    Is minify is indeed responsible for this or is there something else going on?

    Thanks for your thoughts :)


  2. Frederick Townes
    Plugin Author

    Posted 5 years ago #

    W3TC is not minifying the XML file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic