图片标签 src-attribute:会话丢失与移动连接
Image tag src-attribute: Session lost with mobile connection
我使用带有 src 属性的 <img>
标签指向从非 public 文件夹加载图像的脚本。当我用移动连接测试我的网站时,scr-attributes 路径从 src="http://example.com/get_image.php
更改为 src="http://1.1.1.1/bmi/example.com/get_image.php
,我猜这与我的移动互联网提供商有关。问题是,提供图像的脚本无法再识别传入请求的会话。
在非移动 WIFI 连接上,src 属性未更改,一切正常,会话已找到。
用 Cache-Control: no-transform
header 发送我的页面就成功了,至少对于我的移动提供商而言。我在 CBroe 的提示下找到了解决方案:http://stuartroebuck.blogspot.de/2010/08/official-way-to-bypassing-data.html
我很好奇这如何适用于其他移动公司...
我使用带有 src 属性的 <img>
标签指向从非 public 文件夹加载图像的脚本。当我用移动连接测试我的网站时,scr-attributes 路径从 src="http://example.com/get_image.php
更改为 src="http://1.1.1.1/bmi/example.com/get_image.php
,我猜这与我的移动互联网提供商有关。问题是,提供图像的脚本无法再识别传入请求的会话。
在非移动 WIFI 连接上,src 属性未更改,一切正常,会话已找到。
用 Cache-Control: no-transform
header 发送我的页面就成功了,至少对于我的移动提供商而言。我在 CBroe 的提示下找到了解决方案:http://stuartroebuck.blogspot.de/2010/08/official-way-to-bypassing-data.html
我很好奇这如何适用于其他移动公司...