我正在使用 Nginx 为我的静态文件提供服务并将动态请求代理到 Django。我想缓存所有静态文件的静态文件(“过期 24 小时;”),但那些以 *.swf 结尾的文件除外。
当我使用 Apache 时,我将它放在包含 *.swf 文件的目录的 .htaccess 文件中,并且效果很好:
<FilesMatch "\.(swf)$">
Header set Cache-Control "no-cache"
</FilesMatch>
Run Code Online (Sandbox Code Playgroud)
如何在我的 Nginx 配置中获得类似的结果?
归档时间: |
|
查看次数: |
4454 次 |
最近记录: |