scaleflex / js-cloudimage-responsive

Cloudimage Responsive will smartly resize, compress and accelerate images across the World in your site for all devices. The plugin supports lazy loading technique with fancy animation on image load. Any questions or issues, please report to https://github.com/scaleflex/js-cloudimage-responsive/issues
Other
68 stars 15 forks source link

Remove hardcoded `ci_info` query parameter to fix caching (max-age) issue #21

Closed maczuk closed 2 years ago

maczuk commented 2 years ago

Hi there,

Recently, I've spotted that images that are served using this library are not caching accordingly to settings in cloudimage admin panel:

Admin Panel Configuration image

How it looks like in the browser image

but if I remove ci_info parameter, the max-age is back to normal (as in the admin panel settings): image

So, the problem is with the ci_info query parameter that is embedded automatically to every image URL in source the code: image

Can you remove this hardcoded part from the source code or add an option to disable it?

Thanks!

nganchev commented 2 years ago

Hello @maczuk and thanks for your report.

The issue is resolved and pushed in the version 4.8.4 - 2021-01-04