The |timestamp filter adds a timestamp to the URL of a file, i.e. a value that depends on when the file was last modified.



returns squelettes/sakura.jpg
With the |timestamp filter


returns squelettes/sakura.jpg?1455876748

When changing the file, the timestamp has a new value, and thus forces the user’s browser to re-download the updated file.

See also:

The tag


Author jack Published : Updated : 26/06/23

Translations : English, français, Nederlands