From 90cc0b3d596c5abde5c2206d52ed96c58aeefe32 Mon Sep 17 00:00:00 2001 From: Eva Date: Mon, 22 May 2023 11:53:23 +0200 Subject: [PATCH] client/posts: remove cache buster query string on post file change Since filenames now use the new file's sha1. --- client/js/controls/post_content_control.js | 1 - client/js/models/post.js | 7 ------- 2 files changed, 8 deletions(-) diff --git a/client/js/controls/post_content_control.js b/client/js/controls/post_content_control.js index 55daca76..e33c7b42 100644 --- a/client/js/controls/post_content_control.js +++ b/client/js/controls/post_content_control.js @@ -88,7 +88,6 @@ class PostContentControl { _evtPostContentChange(e) { this._post = e.detail.post; - this._post.mutateContentUrl(); this._reinstall(); } diff --git a/client/js/models/post.js b/client/js/models/post.js index 2fb3d34c..7d4e27df 100644 --- a/client/js/models/post.js +++ b/client/js/models/post.js @@ -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,