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:
parent
a2d8454880
commit
90cc0b3d59
2 changed files with 0 additions and 8 deletions
|
@ -88,7 +88,6 @@ class PostContentControl {
|
||||||
|
|
||||||
_evtPostContentChange(e) {
|
_evtPostContentChange(e) {
|
||||||
this._post = e.detail.post;
|
this._post = e.detail.post;
|
||||||
this._post.mutateContentUrl();
|
|
||||||
this._reinstall();
|
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) {
|
_updateFromResponse(response) {
|
||||||
const map = () => ({
|
const map = () => ({
|
||||||
_version: response.version,
|
_version: response.version,
|
||||||
|
|
Loading…
Reference in a new issue