当前位置:网站首页>Vercel uses HTTP caching
Vercel uses HTTP caching
2022-06-13 04:37:00 【Let let】
original text : https://blog.imlete.cn/article/Vercel-Use-HTTP-Cache.html
Recently, I am also bored , Just turn it over Vercel file , So I found out , It can actually customize the response header ( Static file deployment can )
From my personal point of view , I thought I had to use ServerLess Ability to use http The response object of specifies the response header information , little does one think Vercel It can be passed directly
vercel.jsonFile specifies the configuration
The blog I deployed ( Or other static sites ) Isn't it possible to start http Cached ?
Vercel file : https://vercel.com/docs/project-configuration#project-configuration/headers
The following is the use of this site vercel.json file information ( The cache is on 1 God )
{
"headers": [
{
"source": "/sw.js",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=0, must-revalidate"
}
]
},
{
"source": "(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, s-maxage=86400, max-age=86400"
}
]
}
]
}
边栏推荐
- Clear timer failure
- 2022年氧化工艺操作证考试题库及模拟考试
- 2022 ICLR | CONTRASTIVE LEARNING OF IMAGE- AND STRUCTURE BASED REPRESENTATIONS IN DRUG DISCOVERY
- 个人总结的MVP框架
- CTFSHOW SQL注入篇(231-253)
- Catalan number
- General communication protocol for industrial Internet
- NodeJS 解析 GET 请求 url 字符串
- How to implement a custom jdbc driver in only four steps?
- Notes on uni app
猜你喜欢
![C#获取WebService接口的所有可调用方法[WebMethod]](/img/44/4429b78c5b8341ed9a4a08d75a683e.png)
C#获取WebService接口的所有可调用方法[WebMethod]

Redis data persistence

Mongodb compass connects to the Alibaba cloud remote server database or reports an error occurred while loading instance info: command hostinfo req

Read paper 20 together: spatiotemporal prediction of PM2.5 concentration by idw-blstm under different time granularity

用navicat将mysql数据转化为postgresql

A simple understanding of consistent hash

【JS解决】leedcode 117. 填充每个节点的下一个右侧节点指针 II

Ladder race

剑指 Offer 56 - I. 数组中数字出现的次数

Record a troubleshooting process - video call cannot be picked up
随机推荐
2022 ICML | Pocket2Mol: Efficient Molecular Sampling Based on 3D Protein Pockets
在线音频调节技术汇总
Gets or sets the content in an object
MySQL索引
Applet waterfall flow
[automated test] what you need to know about unittest
Analysis of the implementation principle of an open source markdown to rich text editor
小程序基础入门(黑马学习笔记)
Hugo blog building tutorial
Tita:新锐集团采用一对一面谈推动绩效变革成功
PowerShell:因为在此系统上禁止运行脚本,解决方法
【Flutter 問題系列第 67 篇】在 Flutter 中使用 Get 插件在 Dialog 彈窗中不能二次跳轉路由問題的解决方案
Your one-on-one meetings are inefficient. You can do this!
Redis
Normal distribution (Gaussian distribution)
SQL advanced challenge (1 - 5)
2022年氧化工艺操作证考试题库及模拟考试
Consolidated figures
Colab tutorial (super detailed version) and colab pro/pro+ evaluation
SEO specification