Support

Support is part of Event Gallery Extended.

Please get a subscription if you need support. Feel free to use the ticket system or the contact form for reporting defects or pre-sale questions. Make sure you're logged in in order to be able to create a new ticket.

For general information you can also jump to the manual.

Subscribe now!

#3239 Remove query strings from static resources

Posted in ‘Event Gallery Extended’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by sbluege on Sunday, 12 August 2018 12:47 UTC

beejay41
 I am trying to improve performance of my site, following Google Developers advice and various plugins which allow use of a "cdn", to ensure images are delivered from a cookie-less domain and that static resources do not include a query string.

Unfortunately, gallery image resources use image.php which prevents doing both these things and reduces any potential performance improvements.

Would it be possible to change image.php from
/components/com_eventgallery/helpers/image.php?&mode=crop&width=63&folder=EventFolder&file=image.jpg

to something like:
/components/com_eventgallery/helpers/image/crop/63/EventFolder/image.jpg

which would allow plugins to detect the image url and modify it to use a "cdn"?

You would need an .htaccess file in /image/ to direct to image.php, which would be trivial, but changing all the places where the urls are generated is a greater task (and not one for a custom hack).

Thanks
BJ

sbluege
Hi,

For local images, there is no other option and I don't plan to change anything here. I once tried some things, but I did never work as good as expected.

Flickr & Google Photos behave already like CDNs. If you need more control, using Amazon S3 (as I do on this site) would make sense. You upload your images to an S3 bucket, configure CloudFront and you're done. Well... might be not that easy, but in the end, one can get it working. The main drawback is the speed and the need for the thumbnail precalculation.

Be careful with CDNs. I don't know your traffic numbers. If they are too low, the performance with a CDN in place might be worse and just cause additional costs.

beejay41
OK.
I might try adding my own .htaccess and seeing what I can do in template overrides.

I don't actually have a CDN, just an alias to itself, so that there are no cookies and the browser can load more stuff in parallel. The query string apparently prevents some caching and looses points with Google search.

BJ

sbluege
Template overrides will not help. They do not contain any URL code. You could try to modify the router and switch on the fallback render mode. Then Joomla URL magic will happen. That is one of the reasons I don't like to implement this. Joomla should not deliver images. It is too slow since all the Joomla layers are involved. Instead, image.php, a lightweight script, delivers the cached thumbnails.