WP Super Cache
caching XML (2 posts)

  1. Kevin Newman
    Posted 4 years ago #

    I'm working on a couple of sites - one will output to XML with an XLS style sheet attached, and the other will be used to output custom XML - I would like to use WP-Super-Cache, but is there a way to have it save XML files and serve the correct mime-type from the cache?

    I'd guess I need to set something to have WP-Super-Cache save .xml files instead of .html and possibly mods to the .htaccess code. Unless there is already support for .xml.

    All help is appreciated. Thanks!

  2. Donncha O Caoimh
    Plugin Author

    Posted 4 years ago #

    It'll probably work but they'll be cached using "legacy caching" because that stores the headers. Make sure that is_feed() returns true when these XML pages are served or it won't work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic