Greetings!

Using some hook, can I somehow add a ?random to all images on page?
so that:

http://example.com/sites/default/files/imagecache/image.jpg becomes
http://example.com/sites/default/files/imagecache/image.jpg?somerandomtext

Had a look at hook_file_url_alter, but that makes a ? urlencoded and thus part of the filename. Any ideas?

Thanks!

Comments

farald’s picture

Title: Add random element to urls » Add random element to image urls

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.