Şu anda bakım nedeniyle sitemiz kısıtlı işlevsellik sunmaktadır. Mevcut makaleler sorununuzu çözmediyse ve bize soru sormak isterseniz Twitter’da @FirefoxSupport hesabından ve Reddit’teki /r/firefox subreddit'inden destek gönüllülerimize ulaşabilirsiniz.

Mozilla Destek’te Ara

Destek dolandırıcılığından kaçının. Mozilla sizden asla bir telefon numarasını aramanızı, mesaj göndermenizi veya kişisel bilgilerinizi paylaşmanızı istemez. Şüpheli durumları “Kötüye kullanım bildir” seçeneğini kullanarak bildirebilirsiniz.

Daha Fazlasını Öğren

Calling images on website two times

  • 2 yanıt
  • 1 kişi bu sorunu yaşıyor
  • 1 gösterim
  • Son yanıtı yazan: efulimurat

more options

Hi, When I am calling the images of the contents in the website which is developped by PHP, there is no problem to display them. But i check the Access Logs of site, Only Firefox GETs the page TWO times. Other browsers GET the page for one time, but Firefox GETs two times.

Image URL like this : http://www.mysite.com/image/name-of-the-image.jpg (With htaccess rewrite, to an image.php PHP file)

in image.php file , Image Magick (Php Image Library) prints the image..

Internet explorer, chrome, opera vs. is normal. Firefox gets two times on Access Log...

What is the solution of this problem, i couldn't find a solution...

Hi, When I am calling the images of the contents in the website which is developped by PHP, there is no problem to display them. But i check the Access Logs of site, Only Firefox GETs the page TWO times. Other browsers GET the page for one time, but Firefox GETs two times. Image URL like this : http://www.mysite.com/image/name-of-the-image.jpg (With htaccess rewrite, to an image.php PHP file) in image.php file , Image Magick (Php Image Library) prints the image.. Internet explorer, chrome, opera vs. is normal. Firefox gets two times on Access Log... What is the solution of this problem, i couldn't find a solution...

Tüm Yanıtlar (2)

more options

I really can't help you with this one -- this sounds like a developer question. Your best bet is probably to join the mailing list for developer discussions at https://lists.mozilla.org/listinfo/dev-apps-firefox.

Cheers, David

more options

Thanks David, Yes it was a problem for development. I made the headers but still not worked. Then i tried different header, now problem solved... may be needed in the future, the correct header codes like this:

// Last Modified date for caching $file_last_modified = filemtime($filename);

// Expires in two months $expires = time() + (60 * 24 * 60 * 60);

header("Pragma: public"); header("Content-type: image/jpeg"); header("Expires: " . gmdate("D, d M Y H:i:s", $expires) . " GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s", $file_last_modified) . " GMT");

Thanks