WordPress RSS Output Turned into an HTML Page

3-rss The RSS feature lets users subscribe; the output format is XML. But yesterday I suddenly found that my RSS had become an HTML page.

Here’s what happened: Yesterday, when I visited http://www.neilren.com/?feed=rss2, it actually showed the site’s homepage — an HTML page. The RSS couldn’t output. I started looking in the middle of the night, thinking I had broken the program by editing something. I searched sweating but found no cause. With no choice, I went to the WordPress official site, downloaded the program, and reinstalled the site.

Because I was using CDN acceleration, I pointed the domain resolution back to the original IP, reinstalled WordPress, and checked the RSS output — it was normal. Then I pointed the domain to the CDN. After a while, I checked, and the RSS output was still an HTML page.

Now I knew the cause: because of the CDN, the RSS couldn’t be output. I had to add the keyword “FEED” to the cache blacklist so it would fetch from the origin.

Summary: This site uses the Jiasule (加速乐) service. To speed up page loading and improve user experience, it uses homepage acceleration — that is, it caches the homepage’s HTML code and doesn’t fetch from the origin, to improve speed, which causes the RSS not to be output.

Solution: Add the keyword “FEED” to the cache blacklist so it fetches from the origin.