Skip to content

mod_header如何实现给静态文件配置不同的过期时间 #956

Discussion options

You must be logged in to vote

You can use header "Cache-Control" with "max-age=xxx" to control cache , please refer mod_header's config (
https://github.com/bfenetworks/bfe/blob/develop/docs/zh_cn/modules/mod_header/mod_header.md) about how to set header in response.

conditions primitive req_path_suffix_in() can be used to filter resource, just like .(jpg|jpeg|gif|ico) in your example.(https://github.com/bfenetworks/bfe/blob/develop/docs/zh_cn/condition/request/uri.md)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mileszhang2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants