Website

Check-in [fc22552f03]
Login
Overview
Comment:Use max-age instead of must-revalidate as cache settings on html pages.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fc22552f0381f81c36c3e926122972d381e543d238b4e395ee92756171cdaaa0
User & Date: robin.hansen on 2020-11-20 05:28:44
Other Links: manifest | tags
Context
2020-11-20
05:35
Fix typos and improve explination in several examples. check-in: 8879ef99d1 user: robin.hansen tags: trunk
05:28
Use max-age instead of must-revalidate as cache settings on html pages. check-in: fc22552f03 user: robin.hansen tags: trunk
05:27
Frontpage style improvements. check-in: 5a3bee1cd4 user: robin.hansen tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Modified deploy.sh from [141df7d2eb] to [1d91234568].

7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
npm ci
npm run build

# Upload to s3
pushd dist

aws s3 cp ./index.html s3://play-website \
    --cache-control must-revalidate

aws s3 cp ./*.css s3://play-website \
    --cache-control immutable

aws s3 cp ./playground.html s3://play-website \
    --cache-control must-revalidate

aws s3 cp ./*.js s3://play-website \
    --cache-control immutable

aws s3 cp ./*.svg s3://play-website \
    --cache-control immutable

popd







|





|








7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
npm ci
npm run build

# Upload to s3
pushd dist

aws s3 cp ./index.html s3://play-website \
    --cache-control max-age=300

aws s3 cp ./*.css s3://play-website \
    --cache-control immutable

aws s3 cp ./playground.html s3://play-website \
    --cache-control max-age=300

aws s3 cp ./*.js s3://play-website \
    --cache-control immutable

aws s3 cp ./*.svg s3://play-website \
    --cache-control immutable

popd