Remove 'no cache' directive for POST requests

The response for POST request is only cachable under a specific condition and
qbt doesn't use it.
https://developer.mozilla.org/en-US/docs/Glossary/Cacheable
This commit is contained in:
Chocobo1
2024-02-09 14:56:17 +08:00
parent f7e9ff0fb0
commit 8ef99b336c
20 changed files with 15 additions and 36 deletions

View File

@@ -85,7 +85,6 @@ MochaUI.extend({
else {
new Request.JSON({
url: 'api/v2/torrents/uploadLimit',
noCache: true,
method: 'post',
data: {
hashes: hashes.join('|')
@@ -189,7 +188,6 @@ MochaUI.extend({
else {
new Request.JSON({
url: 'api/v2/torrents/downloadLimit',
noCache: true,
method: 'post',
data: {
hashes: hashes.join('|')