问题
I use an <img>
tag with an src-attribute pointing to a script that loads the image from a non-public folder. When I test my website with a mobile connection, the scr-attributes path is changed from src="http://example.com/get_image.php
to src="http://1.1.1.1/bmi/example.com/get_image.php
, I guess that has something to do with my mobile internet provider. The problem is, the image-providing script cannot identify the session of the incoming request anymore.
On a non-mobile WIFI connection, the src-attribute is not changed, everything works as expected and the session is found.
回答1:
Sending my pages with a Cache-Control: no-transform
header did the trick, at least for my mobile provider. I found the solution after CBroe's hint here: http://stuartroebuck.blogspot.de/2010/08/official-way-to-bypassing-data.html
I am curious how that applies to other mobile companies...
来源:https://stackoverflow.com/questions/45459249/image-tag-src-attribute-session-lost-with-mobile-connection