Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sample
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周韬
node-sample
Commits
7adde422
Commit
7adde422
authored
Jun 05, 2017
by
Sebastien Chopin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cache for static/
parent
1c1aa145
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
nuxt.config.js
nuxt.config.js
+13
-3
No files found.
nuxt.config.js
View file @
7adde422
...
@@ -9,10 +9,10 @@ module.exports = {
...
@@ -9,10 +9,10 @@ module.exports = {
titleTemplate
:
'Nuxt HN | %s'
titleTemplate
:
'Nuxt HN | %s'
},
},
loading
:
{
loading
:
{
color
:
'#
ff6600
'
color
:
'#
66e8ad
'
},
},
manifest
:
{
manifest
:
{
theme_color
:
'#41
B
883'
theme_color
:
'#41
b
883'
},
},
modules
:
[
modules
:
[
'@nuxtjs/pwa'
,
'@nuxtjs/pwa'
,
...
@@ -20,5 +20,15 @@ module.exports = {
...
@@ -20,5 +20,15 @@ module.exports = {
],
],
plugins
:
[
plugins
:
[
'~plugins/filters.js'
'~plugins/filters.js'
]
],
render
:
{
static
:
{
maxAge
:
'1y'
,
setHeaders
:
function
(
res
,
path
)
{
if
(
path
.
includes
(
'sw.js'
)
||
path
.
includes
(
'workbox-sw.'
))
{
res
.
setHeader
(
'Cache-Control'
,
'public, max-age=0'
)
}
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment