ZenphotoCMS Forum
Image redirects from jpgs - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Image redirects from jpgs (/thread-12910.html)



Image redirects from jpgs - Nezzy - 17-05-2017

While page load speed analysis, the result showed that the index.php and album.php page (NOT image) images are being redirected:
I.E. redirect from GTmetrix for an album image:

http://domain/zen-folder/zp-core/i.php?a=folder&i=DSC_0019%20%287%29.jpg&cw=0&ch=0&q=75&t=1&wmk=%21&check=eb5aa331de8cfa9b75b97bfb1df05ce8ad5eb2f7
to
http://domain/zen-folder/albums/folder/DSC_0019%20%287%29.jpg

Is this suppose to occur? If not, any idea what the cause may be? I have added my own theme. just looking for a place to start the search....

Zenphoto 1.4.14 is the version i'm using

Thank you
N.




Image redirects from jpgs - Nezzy - 18-05-2017

correction:
(NOT image.php)




Image redirects from jpgs - acrylian - 18-05-2017

Yes, that url is the correct url to the image processor (which i.php is) to generate the cached versions of resized and/or cropped images. It appears only once until the image is created.

More about how caching works in Zenphoto here: http://www.zenphoto.org/news/caching/

These urls on your site probably come from album thumbs being set to random. So the image changes every time and if you have a lot of images in those albums you most likey always get an yet unprocessed one. So solution is to set a static album thumb on each album edit page or use the cacheManager to pre-cache (the theme used must be setup correctly if it uses custom sizes).