Skip to content

Commit

Permalink
chore: add no-cache to index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
panaaj committed Apr 10, 2021
1 parent 79ac552 commit 31dcb1a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG: Freeboard

### v1.15.3

- **Fix**: Add `no-cache` directive to index.html to enforce loading from the server to address loading screen not disappearing after version update.

### v1.15.2

- **Fix**: GPXLoad not correctly handling 202 PENDING response.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,22 +163,22 @@ _Note: These settings apply in **Development Mode** only!_
_They will __NOT__ apply when using **Production Mode**, the generated application will attempt to connect to a Signal K api / stream on the hosting server._

- `ng serve --prod`
- Files generated by `ng build --prod`
- Files generated by `ng build --prod` or `npm run build:prod`

---

### Building a Release:

#### Angular Build

To build the Freeboard application use the `ng build --prod` command.
To build the Freeboard application use the `npm run build:prod` command.

Built application files for deployment are placed in the `/public` folder.

#### NPM package

To build the NPM package use `npm pack` command which will:
1. Build the application using `ng build --prod`.
1. Build the application using `npm run build:prod`.
2. Create the NPM package `*.tgz` file.


Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
{
"name": "@signalk/freeboard-sk",
"version": "1.15.2",
"version": "1.15.3",
"description": "Openlayers chartplotter implementation for Signal K",
"keywords": [
"signalk-webapp",
"signalk-category-chart-plotters"
],
"repository": "https://github.com/SignalK/freeboard-sk",
"scripts": {
"prepare": "ng build --prod",
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
"e2e": "ng e2e",
"build:prod": "ng build --prod --output-hashing all",
"prepare": "npm run build:prod"
},
"author": "AdrianP",
"contributors": [
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class AppInfo extends Info {
this.name= "Freeboard";
this.shortName= "freeboard";
this.description= `Signal K Chart Plotter.`;
this.version= '1.15.2';
this.version= '1.15.3';
this.url= 'https://github.com/signalk/freeboard-sk';
this.logo= "./assets/img/app_logo.png";

Expand Down
4 changes: 4 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

<meta name="description" content="Freeboard for Signal K"/>
<meta name="keywords" content="signal k, signalk, freeboard, signalk webapp"/>

<!-- ******************* Cache control ********************** -->
<meta http-equiv="Cache-control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">

<!-- ******************* PWA ********************** -->
<meta name="theme-color" content="#333333"/>
Expand Down

0 comments on commit 31dcb1a

Please sign in to comment.