mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/posts: remove cache buster query string on post file change
Since filenames now use the new file's sha1.
This commit is contained in:
@ -88,7 +88,6 @@ class PostContentControl {
|
||||
|
||||
_evtPostContentChange(e) {
|
||||
this._post = e.detail.post;
|
||||
this._post.mutateContentUrl();
|
||||
this._reinstall();
|
||||
}
|
||||
|
||||
|
@ -454,13 +454,6 @@ class Post extends events.EventTarget {
|
||||
});
|
||||
}
|
||||
|
||||
mutateContentUrl() {
|
||||
this._contentUrl =
|
||||
this._orig._contentUrl +
|
||||
"?bypass-cache=" +
|
||||
Math.round(Math.random() * 1000);
|
||||
}
|
||||
|
||||
_updateFromResponse(response) {
|
||||
const map = () => ({
|
||||
_version: response.version,
|
||||
|
Reference in New Issue
Block a user