-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
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
Delete query strings #963
Delete query strings #963
Conversation
I don't see docs of Assets... |
v=version, this is to prevent browser caching... |
@jiangtj Yes I know, just an option for some weird user like me. |
In fact, setting HTTP headers through the server is the most effective way to manage the cache... |
It's not necessary to use query string to prevent browser caching
|
efe8c29
to
4b6fb9e
Compare
@jiangtj How do you like it? |
是的,header可以设置缓存时间,但假如文件更新了(文件名不变),但缓存时间未到期,浏览器获取的文件是本地的缓存文件(旧),还是服务器端(新)的呢? Yes, header can set the cache time, but if the file is updated (the file name remains the same), but the cache time does not expire, is the file obtained by the browser a local cache file (old) or server-side (new)? |
这两个例子中 |
jsDelivr对于github资源的
cloudflare会继承用户设置,如果用作github.io的CDN服务,也有 |
So, provide an option, like long long ago I did... |
一旦本地缓存命中,不会请求服务器的,所以假如cache时间是一周,那么当你更新主题之后,你的博客用户可能在1周内遇到由于js或css未更新而导致的问题 |
References:
|
@stevenjoezhang @jiangtj Merge or not? |
merge, 3 > 1 😂 |
A little bit of work 😎, if useless just close it.