Web Tile只能工作一次,但永远不会刷新 [英] Web Tile works once but never refreshes

查看:73
本文介绍了Web Tile只能工作一次,但永远不会刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用在线工具开发了一个单页网络图块.该URL从我自己的服务返回JSON.磁贴第一次运行时,该数据在频带上是正确的,此后尽管从未刷新过.我调查了论坛并进行了尝试,包括通过手机上的同步刷新并确保平铺处于关闭状态.我的服务上的标头不包含论坛中建议的Last-Modified或ETag.在手机和台式机上的浏览器中发布信息就像使用最新数据一样.

I have developed a one page web tile using the online tool. The URL returns JSON from my own service. The first time the tile runs the data is correct on the band, after that though it never ever refreshes. I have looked into the forums and tried things out, including refreshing with the sync on the phone and ensuring the tile is closed. The headers on my service do not include Last-Modified or ETag as suggested in forums. Doing a post in the browser on my phone and desktop works like it should with the latest data.

我的请求标头如下:

连接:保持活动状态 快取控制:max-age = 0 接受:text/html,application/xhtml + xml,application/xml; q = 0.9,image/webp,/; q = 0.8 不安全升级请求:1 用户代理:Mozilla/5.0(Windows NT 10.0; WOW64)AppleWebKit/537.36(KHTML,如Gecko)Chrome/47.0.2526.111 Safari/537.36 接受编码:gzip,deflate,sdch 接受语言:en-GB,en-US; q = 0.8,en; q = 0.6

Connection: keep-alive Cache-Control: max-age=0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36 Accept-Encoding: gzip, deflate, sdch Accept-Language: en-GB,en-US;q=0.8,en;q=0.6

我的响应标题如下:

HTTP/1.1 200确定 缓存控制:无缓存 过期:-1 内容类型:application/json 传输编码:分块 日期:2016年1月17日,星期日,格林尼治标准时间 服务器:本地主机

HTTP/1.1 200 OK Cache-Control: no-cache Expires: -1 Content-Type: application/json Transfer-Encoding: chunked Date: Sun, 17 Jan 2016 11:56:27 GMT Server: localhost

推荐答案

我可以使用我的Android手机以及最新版本的MS Health(1.3.20213.1)和MS Band(2.0.4215.0 26 R)为我确认网络图块现在可以使用,因此这确实是一个错误,与我自己的网络图块无关.

I can confirm for me using my Android phone and the latest version of MS Health (1.3.20213.1) and MS Band (2.0.4215.0 26 R), my web tile now works, so this was indeed a bug, nothing to do with my own web tile.

这篇关于Web Tile只能工作一次,但永远不会刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆