Browse Source

Fix WebUI cache behavior for css files

The style.css in public & private folders share the same URI, this
confuses the browser cache, so rename one of them.
adaptive-webui-19844
Chocobo1 7 years ago
parent
commit
eaa276b284
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/webui/webui.qrc
  2. 0
      src/webui/www/public/css/login.css
  3. 2
      src/webui/www/public/login.html

2
src/webui/webui.qrc

@ -42,7 +42,7 @@
<file>www/private/transferlist.html</file> <file>www/private/transferlist.html</file>
<file>www/private/upload.html</file> <file>www/private/upload.html</file>
<file>www/private/uploadlimit.html</file> <file>www/private/uploadlimit.html</file>
<file>www/public/css/style.css</file> <file>www/public/css/login.css</file>
<file>www/public/login.html</file> <file>www/public/login.html</file>
<file>www/public/scripts/lib/mootools-1.2-core-yc.js</file> <file>www/public/scripts/lib/mootools-1.2-core-yc.js</file>
</qresource> </qresource>

0
src/webui/www/public/css/style.css → src/webui/www/public/css/login.css

2
src/webui/www/public/login.html

@ -5,7 +5,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<title>qBittorrent QBT_TR(Web UI)QBT_TR[CONTEXT=OptionsDialog]</title> <title>qBittorrent QBT_TR(Web UI)QBT_TR[CONTEXT=OptionsDialog]</title>
<link rel="icon" type="image/png" href="images/skin/qbittorrent32.png" /> <link rel="icon" type="image/png" href="images/skin/qbittorrent32.png" />
<link rel="stylesheet" type="text/css" href="css/style.css" /> <link rel="stylesheet" type="text/css" href="css/login.css" />
<script src="scripts/lib/mootools-1.2-core-yc.js"></script> <script src="scripts/lib/mootools-1.2-core-yc.js"></script>
<script> <script>
window.onload = function() { window.onload = function() {

Loading…
Cancel
Save