普通网友 2017-03-29 00:52
浏览 53
已采纳

为W3验证器提供RSS不更新

I have a problem with my feed rss actually.

I did many tests, and i have to modify my feed rss view (customize it).

Here it's my feed rss : http://agro-media.fr/?feed=email

When you are in the link, you see there is no apparent problems.

However, when you check this link in W3 validator or if you choose this feed in mailchimp, he says "THIS IS NOT A VALID RSS FEED, because there is on the top of the feed this :

link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>

BUT NO WAY. I deleted it before...

I already did many things like : - clear WP Rocket cache - clear Varnish cache - clear chrome cache - Server reboot

I don't have more ideas, maybe you can help me ...

thanks a lot guys, have a good day.

  • 写回答

2条回答 默认 最新

  • duanbigan7765 2017-03-29 01:02
    关注

    Your server software seems to act differently when different user-agent header is present. I tried curling your feed URL and got something in binary-like format. When I modified my user-agent like so:

    curl -A "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5" www.agro-media.fr/?feed=email
    

    I got a correct response that starts like this

    <?xml version="1.0" encoding="UTF-8"?><rss version="0.92">
    <channel>
        <title>Agro Media</title>
    

    Unfortunately, I can't help you further, although I've found the cause of your problem.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部