fixed js for preventing cache

This commit is contained in:
coulisse 2023-02-12 11:10:37 +01:00
parent 667f12a7b8
commit ba28c4ecfa
10 changed files with 12 additions and 12 deletions

View File

@ -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

View File

@ -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.

View 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

View File

@ -96,7 +96,7 @@
<span class="copyleft">&copy;</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>
-->

View File

@ -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) => {

File diff suppressed because one or more lines are too long

View File

@ -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",

View File

@ -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 = [

View File

@ -92,7 +92,7 @@
<span class="copyleft">&copy;</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>
-->

View File

@ -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"