Make redirects more sensible
This commit is contained in:
parent
1da1aba9d5
commit
b3fe0911e6
1 changed files with 25 additions and 1 deletions
26
netlify.toml
26
netlify.toml
|
@ -3,9 +3,33 @@
|
||||||
command = "gridsome build"
|
command = "gridsome build"
|
||||||
|
|
||||||
[[headers]]
|
[[headers]]
|
||||||
for = "/*"
|
for = "/"
|
||||||
[headers.values]
|
[headers.values]
|
||||||
cache-control = '''
|
cache-control = '''
|
||||||
public,
|
public,
|
||||||
max-age=0,
|
max-age=0,
|
||||||
must-revalidate'''
|
must-revalidate'''
|
||||||
|
|
||||||
|
[[headers]]
|
||||||
|
for = "*/"
|
||||||
|
[headers.values]
|
||||||
|
cache-control = '''
|
||||||
|
public,
|
||||||
|
max-age=0,
|
||||||
|
must-revalidate'''
|
||||||
|
|
||||||
|
[[headers]]
|
||||||
|
for = "*.htm"
|
||||||
|
[headers.values]
|
||||||
|
cache-control = '''
|
||||||
|
public,
|
||||||
|
max-age=0,
|
||||||
|
must-revalidate'''
|
||||||
|
|
||||||
|
[[headers]]
|
||||||
|
for = "*.json"
|
||||||
|
[headers.values]
|
||||||
|
control = '''
|
||||||
|
public,
|
||||||
|
max-age=0,
|
||||||
|
must-revalidate'''
|
||||||
|
|
Loading…
Reference in a new issue