I display images on the page using a PHP script with a permanent link of the form:

<img src="get_jira_image.php?url=aHR0cDovL2xvY2FsaG9zdDo4MDgwL3NlY3VyZS91c2VyYXZhdGFyP293bmVySWQ9YWxleC12JmF2YXRhcklkPTEwNTAx" /> 

but they are not cached in the browser chrome, unlike the rest, and loaded every time again. What is the reason for this behavior?

  • See the headers that php returns for sure: Cache-Control: no-cache Expires: "current time" - zb '
  • Removed these headers, now come the following: Server: nginx Date: Sun, 09 Jun 2013 21:03:59 GMT Content-Type: text / html; charset = UTF-8 Content-Length: 0 Connection: keep-alive X-Powered-By: PHP / 5.3.21 Set-Cookie: PHPSESSID = i1kbl16jud39sumr2aocv7qs51; path = / but images are not cached all the time. I tried to set the header "Cache-Control: private" did not help either ... - alex-v
  • look at static resources which heders, set those same - zb '
  • I am sleepy, because I will not look for a solution now. I will say it again: because of this "feature" of the chrome, I sawed through the flash application (hoped for the browser cache); and two: chrome caching - a joke and a bad dream in one executable. It is very likely that the solution will be in 2-5 additional headers specifically for a chrome mate. Or will not) - Sh4dow
  • hmm ... installed exactly the same headers as in the static picture, caching according to chrome: // cache / is, but wrong. Those. in fact, when reloading stnitsy pictures are loaded not from the cache, but from the server ... And for some reason, with different headers, static and dynamic pictures are saved in the cache: img209.imageshack.us/img209/4449/2013061063024.png img835.imageshack.us /img835/8347/2013061063044.png - alex-v

0