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
262e1ba0
Commit
262e1ba0
authored
Jul 06, 2020
by
Sébastien Chopin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: upgrade and use cache control
parent
73c2433c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
nuxt.config.js
nuxt.config.js
+8
-1
No files found.
nuxt.config.js
View file @
262e1ba0
...
@@ -25,7 +25,7 @@ export default {
...
@@ -25,7 +25,7 @@ export default {
start_url
:
'/news'
start_url
:
'/news'
},
},
dev
Modules
:
[
build
Modules
:
[
'@nuxtjs/pwa'
,
'@nuxtjs/pwa'
,
'@nuxtjs/axios'
'@nuxtjs/axios'
],
],
...
@@ -38,6 +38,13 @@ export default {
...
@@ -38,6 +38,13 @@ export default {
'~/plugins/filters'
'~/plugins/filters'
],
],
serverMiddleware
:
[
(
req
,
res
,
next
)
=>
{
res
.
setHeader
(
'Cache-Control'
,
's-maxage=30, stale-while-revalidate'
)
next
()
}
],
render
:
{
render
:
{
http2
:
{
http2
:
{
push
:
true
push
:
true
...
...
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