普通网友 2017-03-29 08: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 09: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条)

报告相同问题?

悬赏问题

  • ¥15 基于双目测规则物体尺寸
  • ¥15 wegame打不开英雄联盟
  • ¥15 公司的电脑,win10系统自带远程协助,访问家里个人电脑,提示出现内部错误,各种常规的设置都已经尝试,感觉公司对此功能进行了限制(我们是集团公司)
  • ¥15 救!ENVI5.6深度学习初始化模型报错怎么办?
  • ¥30 eclipse开启服务后,网页无法打开
  • ¥30 雷达辐射源信号参考模型
  • ¥15 html+css+js如何实现这样子的效果?
  • ¥15 STM32单片机自主设计
  • ¥15 如何在node.js中或者java中给wav格式的音频编码成sil格式呢
  • ¥15 不小心不正规的开发公司导致不给我们y码,