cache.config文件配置模板
#
# cache.config
#
# The purpose of this file is to alter caching parameters of
# specific objects or sets of objects
#
# Each line consists of a set of tag value pairs. The pairs
# are in the format <tag>=<value>
#
# Each line must include exactly one primary specifier
#
# Primary destination specifiers are
# dest_domain=
# dest_host=
# dest_ip=
# url_regex=
#
#
# Lines may include any number of the secondary specifiers but
# secondary specifiers may not be duplicated on the same line
#
# Secondary specifiers are
# port=
# scheme=
# prefix=
# suffix=
# method=
# time=
# src_ip=
#
# Each line must include exactly one cache directive
# Cache directives are
# action=never-cache
# action=ignore-no-cache (client & server no cache)
# action=ignore-client-no-cache (only client no cache)
# action=ignore-server-no-cache (only server no cache)
# pin-in-cache=<time>
# revalidate=<time>
# ttl-in-cache=<time> (force caching and expire after <time>)
#
# Each line may also contain various "tweaks" which adjust caching parameters.
# Tweaks are
# cache-responses-to-cookies=<value>
# - Change the style of caching with regard to cookies. This effectively
# overrides the configuration parameter
# proxy.config.http.cache.cache_responses_to_cookies
# and uses the same values with the same semantics. The override happens
# only for requests that match.
#
# Examples
#
# Revalidate all http objects from www.example.com after 2 hours
# dest_domain=www.example.com scheme=http revalidate=2h
#
#
##http black url
url=http://www.baidu.com/ action=never-cache
url=http://www.soso.com/ action=never-cache ##http video file type
url_regex=.* suffix=flv,f4v,hlv,fhv,letv,ts,avi,mov,rm,rmvb,ram,wmv,mkv,mp3,mp4,wma,mid,asf,wav,asx,m2ts,msu,aac,ape,flac,m4a,midi,dbts,265ts,amp4,f4vcrc,265tscrc,m4s ttl-in-cache=720h ##http download file type
url_regex=.* suffix=exe,msi,rar,iso,cab,psf,zip,gz,tgz,bzip,bzip2,ta,bz2,tar,m4r,dpk,pak,apk,ipa,xap,pdf,esd,appxbundle,mds,mtz,7z,patch,patch2,vcdiff,aup,gmz,apt,dll,dmg,dat,cup,001,002,003,eupd,dangbei,dac ttl-in-cache=240h ##http dynamic request
url_regex=.* suffix=asp,aspx,php,do,dwr,cgi,fcgi,action,axd,json,py,perl,lua,m3u8 action=never-cache
cache.config文件配置模板的更多相关文章
- records.config文件配置模板
# # # Process Records Config File # # <RECORD-TYPE> <NAME> <TYPE> <VALUE (till ...
- remap.config文件配置模板
# # URL Remapping Config File # # Using remap.config allows you to accomplish two things: # # 1) Rew ...
- c#Winform程序调用app.config文件配置数据库连接字符串 SQL Server文章目录 浅谈SQL Server中统计对于查询的影响 有关索引的DMV SQL Server中的执行引擎入门 【译】表变量和临时表的比较 对于表列数据类型选择的一点思考 SQL Server复制入门(一)----复制简介 操作系统中的进程与线程
c#Winform程序调用app.config文件配置数据库连接字符串 你新建winform项目的时候,会有一个app.config的配置文件,写在里面的<connectionStrings n ...
- SSH自动登录config文件配置
title: SSH自动登录config文件配置 comments: false date: 2019-08-19 19:29:13 description: 更方便的 ssh 操作??? categ ...
- C# app.config文件配置和修改
很多时候我们需要对系统的.config文件进度读写操作,例如:系统初始化的参数的更改.系统参数的改变都需要更新到配置文件. 首先我们有必要了解一下app.config.exe.config和vshos ...
- 跨域Ajax请求 web.config文件配置
在web.config文件的<system.webServer>节点下面添加如下配置代码:<!--允许跨域ajax访问--> <httpProtocol> < ...
- Web.Config文件配置之限制上传文件大小和时间
在邮件发送系统或者其他一些传送文件的网站中,用户传送文件的大小是有限制的,因为这样不但可以节省服务器的空间,还可以提高传送文件的速度.下面介绍如何在Web.Config文件中配置限制上传文件大小与时间 ...
- 通过config文件配置动态导入模块
需求: 固定的服务中要调用不同的算法,当前服务中实现的动态导入是通过在config配置中加上参数:proto="AiProto(1,4)",在服务中from pathname im ...
- Winform 数据库连接app.config文件配置 数据库连接字符串
1.添加配置文件 新建一个winform应用程序,类似webfrom下有个web.config,winform下也有个App.config;不过 App.config不是自动生成的需要手动添加,鼠标右 ...
随机推荐
- 【转】Nginx SSL_PROTOCOL_ERROR 问题
转自:https://maoxian.de/2017/12/1471.html 这两天在检查一台 Nginx 配置的时候,遇到了一个极端诡异的问题.一段很通用的配置,配在这个服务器上,就会 100% ...
- 把玩爬虫框架Gecco
如果你现在接到一个任务,获取某某行业下的分类. 作为一个非该领域专家,没有深厚的运营经验功底,要提供一套摆的上台面且让人信服的行业分类,恐怕不那么简单. 找不到专家没有关系,我们可以爬虫.把那些专家的 ...
- Gym 101667I Slot Machines
原题传送门 题意:给定n(n≤106)个数,要求将它化为混偱环小数的形式,即前k个数不参与循环,之后所有数以p为循环节长度进行循环.求k和p,要求k+p尽量小,k+p相等时要求p尽量小. 样例1 输入 ...
- [bzoj3203][Sdoi2013]保护出题人
人生第一道三分?... 把进攻序列里的前i只僵尸看成一个点,横坐标是第i只僵尸到达的时间,纵坐标是这i只僵尸的血量总和..就是说植物必须在这段时间内输出这些伤害..那么单位时间的输出伤害就是斜率了. ...
- Java排序算法分析与实现:快排、冒泡排序、选择排序、插入排序、归并排序(二)
一.概述: 上篇博客介绍了常见简单算法:冒泡排序.选择排序和插入排序.本文介绍高级排序算法:快速排序和归并排序.在开始介绍算法之前,首先介绍高级算法所需要的基础知识:划分.递归,并顺带介绍二分查找算法 ...
- SAX解析原理示意
SAX解析原理示意
- channelartlist|频道文档:
http://help.dedecms.com/v53/archives/tag/global/channelartlist/ {/dede:channelartlist} 参数说明: typeid ...
- Java进阶篇(三)——Java集合类
集合可以看作一个容器,集合中的对象可以很容易存放到集合中,也很容易将其从集合中取出来,还可以按一定的顺序摆放.Java中提供了不同的集合类,这些类具有不同的存储对象的方式,并提供了相应的方法方便用户对 ...
- apple watch 与 iphone 之间的通信方式
apple watch 与 iphone 之间的通信方式:通过watchkit WatchKit应用扩展都提供一个名为WKInterfaceController的子类来管理相应的界面. 启动watch ...
- AF_INET 和PF_INET区别;AF_LOCAL PF_LOCAL 区别.
从字面理解: AF_INET = Address Format, Internet = IP Addresses PF_INET = Packet Format, Internet = IP, TCP ...