We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
封装了 send,默认只有协商缓存etag,强缓存设置为 no-cache。强缓存和协商缓存同时存在的时候,先强缓存后协商缓存。
如果是利用 http 强缓存,不用再次编译。
如果是协商缓存,利用 etag,client会一直询问server的etag签名是否匹配,否则重新编译。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
页面(client)与vite启的服务(server)之间是如何处理 scss 资源的
1. 预处理解析 sccs 得到 css:调用cssPlugin 解析 scss 得到 css 代码。中间利用了 postcss
2. 后处理将 css 包装成 js 代码:调用cssPostPlugin。
热更新与缓存
如果是利用 http 强缓存,不用再次编译。
如果是协商缓存,利用 etag,client会一直询问server的etag签名是否匹配,否则重新编译。
The text was updated successfully, but these errors were encountered: