Skip to content

Commit

Permalink
fixed js for preventing cache
Browse files Browse the repository at this point in the history
  • Loading branch information
coulisse committed Feb 12, 2023
1 parent 667f12a commit ba28c4e
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:** <[email protected]>
- **Licensing:** Gpl V3.0 see [LICENSE](LICENSE) file.
Expand Down
4 changes: 2 additions & 2 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion static/html/offline.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ <h2 class="display-4">No internet connection</h2>
<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>
-->
Expand Down
1 change: 1 addition & 0 deletions static/js/dev/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion static/js/rel/table.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/pwa/manifest.webmanifest
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion static/pwa/service-worker.js
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion templates/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
-->
Expand Down
3 changes: 1 addition & 2 deletions webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down

0 comments on commit ba28c4e

Please sign in to comment.