mirror of
https://github.com/coulisse/spiderweb.git
synced 2024-09-21 07:27:09 +00:00
fixed js for preventing cache
This commit is contained in:
parent
667f12a7b8
commit
ba28c4ecfa
@ -24,5 +24,5 @@ keywords:
|
||||
- dxcluster
|
||||
- spiderweb
|
||||
license: GPL-3.0
|
||||
version: v2.4.2
|
||||
date-released: 2023-02-11
|
||||
version: v2.4.1.2
|
||||
date-released: 2023-02-12
|
||||
|
@ -10,7 +10,7 @@
|
||||
[![CodeFactor](https://www.codefactor.io/repository/github/coulisse/spiderweb/badge)](https://www.codefactor.io/repository/github/coulisse/spiderweb)
|
||||
|
||||
|
||||
- **Release:** v2.4.2
|
||||
- **Release:** v2.4.1.2
|
||||
- **Author:** Corrado Gerbaldo - [IU1BOW](https://www.qrz.com/db/IU1BOW)
|
||||
- **Mail:** <corrado.gerbaldo@gmail.com>
|
||||
- **Licensing:** Gpl V3.0 see [LICENSE](LICENSE) file.
|
||||
|
@ -1,6 +1,6 @@
|
||||
### Change log
|
||||
Date: 11/02/2023
|
||||
Release: v2.4.2
|
||||
Date: 12/02/2023
|
||||
Release: v2.4.1.2
|
||||
- changed cache-control header
|
||||
- fixed Layout scrolling (SEO)
|
||||
- first time spot load: not show cyan background
|
||||
|
@ -96,7 +96,7 @@
|
||||
<span class="copyleft">©</span> Copyleft:
|
||||
<span id="copyDate"></span>
|
||||
<a href="https://github.com/coulisse/spiderweb/" target="blank" rel="noopener">IU1BOW - Spiderweb</a>
|
||||
<span id="version">v2.4.2</span>
|
||||
<span id="version">v2.4.1.2</span>
|
||||
<!--
|
||||
<a href="https://github.com/coulisse/spiderweb/" target="blank" rel="noopener"><img src="/static/images/icons/github-mark.svg" alt="github.com" width="16px" height="16px"></a>
|
||||
-->
|
||||
|
@ -355,6 +355,7 @@ function refresh_timer() {
|
||||
|
||||
|
||||
//Open a new connection, using the GET request on the URL endpoint
|
||||
qryString=qryString.concat('&'.concat(Math.random())); //used to prevent caching
|
||||
fetch(qryString)
|
||||
.then((response) => response.json())
|
||||
.then((data_new) => {
|
||||
|
2
static/js/rel/table.min.js
vendored
2
static/js/rel/table.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "IU1BOW Spiderweb v2.4.2",
|
||||
"name": "IU1BOW Spiderweb v2.4.1.2",
|
||||
"description": "DXCluser for ham radio by IU1BOW",
|
||||
"short_name": "Spiderweb",
|
||||
"theme_color": "#f3b221",
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Dichiarazione della costante per il nome della cache
|
||||
const CACHE_NAME = 'pwa-spiderweb_v2.4.2'
|
||||
const CACHE_NAME = 'pwa-spiderweb_v2.4.1.2'
|
||||
|
||||
// Dichiarazione della costante per gli URL da mettere in cache
|
||||
const URLS_TO_CACHE = [
|
||||
|
@ -92,7 +92,7 @@
|
||||
<span class="copyleft">©</span> Copyleft:
|
||||
<span id="copyDate"></span>
|
||||
<a href="https://github.com/coulisse/spiderweb/" target="blank" rel="noopener">IU1BOW - Spiderweb</a>
|
||||
<span id="version">v2.4.2</span>
|
||||
<span id="version">v2.4.1.2</span>
|
||||
<!--
|
||||
<a href="https://github.com/coulisse/spiderweb/" target="blank" rel="noopener"><img src="/static/images/icons/github-mark.svg" alt="github.com" width="16px" height="16px"></a>
|
||||
-->
|
||||
|
@ -470,8 +470,7 @@ def add_security_headers(resp):
|
||||
resp.headers["X-Frame-Options"] = "SAMEORIGIN"
|
||||
resp.headers["X-Content-Type-Options"] = "nosniff"
|
||||
resp.headers["Referrer-Policy"] = "strict-origin-when-cross-origin"
|
||||
#resp.headers["Cache-Control"] = "public, no-cache"
|
||||
resp.headers['Cache-Control']='no-store'
|
||||
resp.headers["Cache-Control"] = "public, no-cache"
|
||||
resp.headers["Pragma"] = "no-cache"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user