#
# 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文件配置模板的更多相关文章

  1. records.config文件配置模板

    # # # Process Records Config File # # <RECORD-TYPE> <NAME> <TYPE> <VALUE (till ...

  2. remap.config文件配置模板

    # # URL Remapping Config File # # Using remap.config allows you to accomplish two things: # # 1) Rew ...

  3. c#Winform程序调用app.config文件配置数据库连接字符串 SQL Server文章目录 浅谈SQL Server中统计对于查询的影响 有关索引的DMV SQL Server中的执行引擎入门 【译】表变量和临时表的比较 对于表列数据类型选择的一点思考 SQL Server复制入门(一)----复制简介 操作系统中的进程与线程

    c#Winform程序调用app.config文件配置数据库连接字符串 你新建winform项目的时候,会有一个app.config的配置文件,写在里面的<connectionStrings n ...

  4. SSH自动登录config文件配置

    title: SSH自动登录config文件配置 comments: false date: 2019-08-19 19:29:13 description: 更方便的 ssh 操作??? categ ...

  5. C# app.config文件配置和修改

    很多时候我们需要对系统的.config文件进度读写操作,例如:系统初始化的参数的更改.系统参数的改变都需要更新到配置文件. 首先我们有必要了解一下app.config.exe.config和vshos ...

  6. 跨域Ajax请求 web.config文件配置

    在web.config文件的<system.webServer>节点下面添加如下配置代码:<!--允许跨域ajax访问--> <httpProtocol> < ...

  7. Web.Config文件配置之限制上传文件大小和时间

    在邮件发送系统或者其他一些传送文件的网站中,用户传送文件的大小是有限制的,因为这样不但可以节省服务器的空间,还可以提高传送文件的速度.下面介绍如何在Web.Config文件中配置限制上传文件大小与时间 ...

  8. 通过config文件配置动态导入模块

    需求: 固定的服务中要调用不同的算法,当前服务中实现的动态导入是通过在config配置中加上参数:proto="AiProto(1,4)",在服务中from pathname im ...

  9. Winform 数据库连接app.config文件配置 数据库连接字符串

    1.添加配置文件 新建一个winform应用程序,类似webfrom下有个web.config,winform下也有个App.config;不过 App.config不是自动生成的需要手动添加,鼠标右 ...

随机推荐

  1. Erlang内存吃紧之解决思路

    首先使用erlang:memory()确定是哪个部分内存吃紧,根据输出的内容,比对内存占用大小,有针对性地进行分析.在erlang系统里内存的单位为word,通过erlang:system_info( ...

  2. Erlang epmd官方文档中文翻译

    本文含epmd简介及官方文档之翻译,文档地址 http://erlang.org/doc/man/epmd.html翻译时的版本 R19.1 中英文水平都不咋地,不通顺处海涵,就酱. 简介 Erlan ...

  3. Ubuntu下配置ShadowS + Chrome

    // 这是一篇导入进来的旧博客,可能有时效性问题. 题目和全文中的ShadowS指代以ShadowS开头名字的某工具,以预防文章被和谐.本机Ubuntu 14.04 LTS.在apt-get upda ...

  4. 运用C语言将图片转换成16进制的字符串(base64)

    最近在写手机端的性能测试脚本的时候,发现手机在上传图片数据时,先将图片转换成一堆16进制的字符,将字符传输过去,服务器再将字符解码成图片 我们在loadrunner中测试时,就需要用C语言将图片编码. ...

  5. Wannafly模拟赛 A.矩阵(二分答案+hash)

    矩阵 时间限制:1秒 空间限制:131072K 题目描述 给出一个n * m的矩阵.让你从中发现一个最大的正方形.使得这样子的正方形在矩阵中出现了至少两次.输出最大正方形的边长. 输入描述: 第一行两 ...

  6. PE 001~010

    题意: 001(Multiples of 3 and 5):对小于1000的被3或5整除的数字求和. 002(Even Fibonacci numbers):斐波那契数列中小于等于4 000 000的 ...

  7. Windows系统下文件的概念及c语言对其的基本操作(乙)

  8. return机制

    C/C++中,函数内部的一切变量(函数内部局部变量,形参 )都是在其被调用时才被分配内存单元.子函数运行结束时,所有局部变量的内存单元会被系统释放.形参和函数内部的局部变量的生命期和作用域都是在函数内 ...

  9. angular $compile的使用

    在写前端js时,经常会动态创建标签放入文本元素中: 比如:var strDiv='<div>new create element</div>'; $(strDiv).appen ...

  10. cesium编程入门(三)开始使用cesium开发

    搭建最简的开发环境 这一节来搭建一个最简单的能运行的helloworld,以后的代码也会在这一节的基础上慢慢增加 创建文件夹 mkdir cesium-test cd cesium-test 引入编译 ...