Fixing the caching issue

This commit is contained in:
Ketan Patel committed 2026-04-04 14:51:28 -04:00
1 parent 5a90ce51d8
commit ea343f7943
6 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -18,5 +18,5 @@
</div> </div>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="/static/js/alerts.js"></script> <script src="/static/js/alerts.js?v=3"></script>
{% endblock %} {% endblock %}
+3 -3
View File
@@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{% block title %}UPS Dashboard{% endblock %}</title> <title>{% block title %}UPS Dashboard{% endblock %}</title>
<meta name="csrf-token" content="{{ request.cookies.get('csrf_token', '') }}" /> <meta name="csrf-token" content="{{ request.cookies.get('csrf_token', '') }}" />
<link rel="stylesheet" href="/static/css/base.css" /> <link rel="stylesheet" href="/static/css/base.css?v=3" />
<link rel="stylesheet" href="/static/css/style.css" /> <link rel="stylesheet" href="/static/css/style.css?v=3" />
{% block head_extra %}{% endblock %} {% block head_extra %}{% endblock %}
</head> </head>
<body> <body>
@@ -29,7 +29,7 @@
<main class="site-main"> <main class="site-main">
{% block content %}{% endblock %} {% block content %}{% endblock %}
</main> </main>
<script src="/static/js/app.js"></script> <script src="/static/js/app.js?v=3"></script>
{% block scripts %}{% endblock %} {% block scripts %}{% endblock %}
</body> </body>
</html> </html>
+4 -4
View File
@@ -1,7 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}UPS Configuration{% endblock %} {% block title %}UPS Configuration{% endblock %}
{% block head_extra %} {% block head_extra %}
<link rel="stylesheet" href="/static/css/config.css" /> <link rel="stylesheet" href="/static/css/config.css?v=3" />
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
@@ -22,8 +22,8 @@
<form id="ups-form"> <form id="ups-form">
<div class="form-group"> <div class="form-group">
<label for="ups-name">Name *</label> <label for="ups-name">Name *</label>
<input type="text" id="ups-name" name="name" required pattern="[A-Za-z0-9_-]{1,32}" maxlength="32"> <input type="text" id="ups-name" name="name" required pattern="[A-Za-z0-9_.\- ]{1,32}" maxlength="32">
<small>1-32 alphanumeric, underscore, dash</small> <small>1-32 chars (letters, digits, space, dot, underscore, dash)</small>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="ups-host">Host/IP *</label> <label for="ups-host">Host/IP *</label>
@@ -84,5 +84,5 @@
<div id="toast-container"></div> <div id="toast-container"></div>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="/static/js/config.js"></script> <script src="/static/js/config.js?v=3"></script>
{% endblock %} {% endblock %}
+1 -1
View File
@@ -50,5 +50,5 @@
</div> </div>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="/static/js/dashboard.js?v=2"></script> <script src="/static/js/dashboard.js?v=3"></script>
{% endblock %} {% endblock %}
+1 -1
View File
@@ -17,5 +17,5 @@
</div> </div>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="/static/js/events.js"></script> <script src="/static/js/events.js?v=3"></script>
{% endblock %} {% endblock %}
+1 -1
View File
@@ -40,5 +40,5 @@
</div> </div>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="/static/js/settings.js"></script> <script src="/static/js/settings.js?v=3"></script>
{% endblock %} {% endblock %}