Attachment URL Version

Adds the version number of attachments to their URL.

Author:Matthias-Christian Ott (profile at wordpress.org)
WordPress version required:4.6
WordPress version tested:6.1.1
Plugin version:1.0.4
Added to WordPress repository:26-06-2021
Last updated:08-01-2023
Rating, %:0
Rated by:0
Plugin URI:https://wordpress.org/plugins/attachment-url-...
Total downloads:977
plugin download
Click to start download

By default, attachments do not have a version query parameter, like, for example JavaScript files have. This plugins adds version numbers to the query strings of attachments.

Version numbers in query strings are useful for caching. If an attachment changes, its version number and, therefore, its URL changes. This allows for the attachment to be cached for an extended period of time or indefintely, for example, with the directive “immutable” of the Cache-Control header.


ChangeLog