I think I figured out a problem with GoogleImageProxy.
This is due to the concept of CACHING. Suppose you recently deployed your php code on your server, but you forgot to upload the images. You tested once using your email. Your system has created an HTML email address. When this message arrives at the gmail server, GoogleImageProxy will try to extract and save the images from your site to its own proxy server. when receiving images GoogleImageProxy detected about 404 statuses against your missing images and 403 for some protected images. GoogleImagesProxy saved these statuses to its own proxy server.
Now, trying to open your email, you noticed about 404 statuses against your images. This is clear. You immediately realized that you forgot to upload some images, so you uploaded them to your server. and also you set some permissions for protected images.
You are all done. Now you are trying to run your php-email script again. As a result, you get another email in your Gmail or Hotmail inbox. You fixed all the problems with your images. Images should now display in your email content. but you still cannot see the images.
Or perhaps you forgot to clear your browser cache. Clear your browser’s cache and reload the gmail or hotmail page. But the result will be the same. Try to apply dozens of corrections / corrections and try to run php-email script thousands of times. But the result will be the same. No improvements.
REAL PROBLEM
What the hell is going on? Let me explain this to you. Go to your access log and try to find requests from GoogleImageProxy. You will be surprised to see that GoogleImageProxy will only have 2-3 or three requests depending on the number of different images used in your letter. GoogleImageProxy never tried to retrieve images. Even after fixing image problems by downloading missing images and setting permissions for protected images. What for? Clearing the browser cache is not affected. GoogleImageProxy will never receive fresh images even for your new email, since images are now cached in GoogleImageProxy with their latest status code and not cached in your own browser.
GoogleImageProxy has set its own expiration date for images. I think one month. therefore, a fresh copy of the images will now be selected after the expiration date. I mean in a month. You cannot force GoogleImageProxy to retrieve images. But it’s important that you display the images in your letter. What could be the solution?
DECISION
Below is the only way to get GoogleImageProxy to retrieve your images.
- Rename your images to something else with the extensions png, jpg or gif only.
- Do not use the query string in the image url, for example
?t=34343 - Your image should include png, jpg or gif as an extension.
- Your image url should display directly on your image.
- If you need to use a proxy address for protected images, then your answer should contain the correct header, for example
Content-Type: image/jpeg - The header of the file extension and content must match
- The status code should be 200 instead of 403, 500, etc.
IMPORTANT NOTE
Try to repeat the whole process for each run php-email script. because every time GoogleImageProxy caches your images, you have to repeat the same process for every new attempt.
Hope this solves the problem for most people.
Malik Ahmed Khan Awan Mar 21 '15 at 15:46 2015-03-21 15:46
source share