, .
. , , , -
. ! , , ! , , .
Ken Cochrane: - . ! -, timezone.now() URL-, : utc = 2018-02-19_22.57.30 ( URL-, , URL- - ).
: '% Y-% m-% d_% H.% M.% S'
, , , . : timezone.now() . , , . - , , .
, ? updated = 2018-02-19_22.57.30
The solution can be used while maintaining the same image name, but changing the image file using the timestamp of the image file system for the query string. Only when the image is changed will the timestamp be different and the browser will be updated. When the image file is the same, the timestamp will be the same, so the browser can display the cached version.
source
share