首页 > 配置文件 > cache.confige�?c?�a?�revalidatea�?ttl-in-cachea�?pin-in-cache

cache.confige�?c?�a?�revalidatea�?ttl-in-cachea�?pin-in-cache

2013年7月16日     浏览数:291 发表评论 阅读评论

cache.confige�?c?�a?�cs�revalidatea�?ttl-in-cachea�?pin-in-cachee??c��a?Z?�??�???�e???Z?e?�i???��a�?a�???�e��a??e??e�?a��?��?��a?sa?�c�?aY???�?��e?�???a�?e?�e�?e�Sa?�e?�a?�e??cs�a?�a??a��

  • revalidate
    e��a??e???��e??cs�?��e�?i??e��e?�e?�a??e�?a�s?��e�?i??e?�e�?a�z?????�e??a??e�????a?�?��e??a��a?sa?�a�?httpa�?a?�a�?e??a?????agea��
  • ttl-in-cache
    a??a?�c?�a�?cs�?��e�?i??e?�a??e��e??e??a�Ye��atsa??c�????cs�cache-controla�?a?�a�?e??a?????e�?a??a?�c?�a�?i??a?�a?�e��a??a??e�?a??e?�a??a??a?�c?�a�??��e�?e�?e??????��e??cs�a��a?sa?�a�?httpa�?a?�a�?e??a?????agea��c�??��e?�a?�cZ�a��??�revalidatea??a�?c?�e�?a��

  • pin-in-cache
    a??c��a??c?�a�?a?�cs�?��e�?a��a??a?�e??a�?c?�e�?a??e�?a?se?�a?�e��i??a??a�?e�?c?�a??e�?c?�?��a??c��a??c?�a�?a?�cs�?��e�?i??a??e�?a�scs�?��??Ya��i??a��c��a�?a�?c�?e?�??Ya?�a?Ya??a?�e��a�?a��a??a?sa?�a�?httpa�?a?�a�?e??a?????agea��

e????Z

c��a?Zpin-in-cache???a??a?sa?�a�?httpa�?a?�a�?e??a?????agecs�i???��a�?a??a�?a???��e?�a�?a?�???cs�?�??z?a?�i??a��c?�e�?a�?e??a�Yc?�?��a??c��a??e�?a??c?�a�?a?�cs�?��e�?a??a??a��a?�e????�a��a�Z?�??z?a?S???a?�?z?a?�a?�a��e??a�Ya?�a�?agea?????cs�a?�e??e�?c?�a��
a?�e??e�?c?�cs�dest_domain???a�z???cs�aYYa??/ipa��

?��e?�cZ?a??e????Z

  • a??a?�a�?cs�bloga��a��a�?ats?��?��?��e?�cZ?a????�a�?a�?a?�a�?c�?a��c�?e?�??�cs�?��e?�cZ?a??a?�a��?��?�?e?�e??a?Y???aY?a?Ze?�a???��e?�cZ?a??aY?c?�a?Sa��
  • nginx???aS?a�?e�Yatsa??a??a?�a?�???i??ipa??192.168.30.56i??a??nginx webe�?c?�c��a?�?�?a?�a�?c��?��a��1.gif

a�?a?Zcliente?�?��a�?e??no-cachecs�e????Z

e?�?��a�?e??a????????a?�c�?a??a??cs�i??a��a?�i?s

Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding gzip, deflate
Accept-Language zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
Cache-Control   no-cache
Connection  keep-alive
Host    192.168.30.56
Pragma  no-cache
User-Agent  Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0

atse�?e��???e?�a??c�???�e?�?��a�?e??a?????cs�cache-controlcs�i??c��a?Sa??a�?c?�a?�e?�?��a�?e???????�a?�no-cachea?????cs�i??a??atsa??e�?c?�a??c�?clientc�?cs�no-cache??�a��a?�i??a?sa?�c�?a�z????Y?e??a??e�????a?�?��e??a��
1

?��a�?a?�e??a?sa��a?�e�?c?�a??c�?clientc�?cs�no-cachea?????i?s

traffic_line -s proxy.config.http.cache.ignore_client_no_cache -v 1
traffic_line -x

a?�e?????a�ze???��e?�c��?z?

  • nginxe�?c?�expires off;cache.configa??a?sa��a?�e�?c?�

a??a??c�?c�???�cs�no-cache??�a��a?�i????????aS?a�?a???????�e�?c?�c?�a�??��e�?cs�e??i??e??a?�a?�c�???�a��
* a??e�?a�?c�?a??c?�a�?a?�
* a??e�?e?????a??c?�a�?a?�

a??e�?a�?c�?a??c?�a�?a?�cs�?��a��atse?�a??freahness _limit’='(date’ a��’last_modified)’*’0.1???e�?c��?��e??a?�a��
age

a???��e?�a?�a?Za��a�z??�a�?c�?a?sa?�a��a?�?�?a???�????a?�?��a��a?�i??a?�???c��a?Za��a?Scs�a?�?��?��e??a?�cs�?�?a??e��a??c?�a�?a?�cs�e??????��e??cs�a��?��a�?e??i??a????????aS?a�?a???Z�a?�c?�a�??��e�?a�?atsa???Z�a?�c?�a�??��e�?cs�??�a��a?�i?????a?sa??e�?c�???�a?�a??a?�??�?��a��a�?cs�a��
cp

  • nginxe�?c?�expires off;cache.confige�?c?�dest_domain=192.168.30.56 ttl-in-cache=15s

a??e�?e??a��a�?c?�a�?i??e??a??e??a??e�?a??15sa��???e��a???��e??cs�a��agea??0-15sa??a?�a��

  • nginxe�?c?�expires off;cache.confige�?c?�dest_domain=192.168.30.56 revalidate=12s

a??e�????a��a�?c?�a�?i??agea?�c�????0a��[cMsSf ]

  • nginxe�?c?�expires 10;

a??e�?e??a��a�?a?�c?�a�?a?�i??agea??0-10sa?�e�?a��10sa?�a?Za?sa�z?????�e??a?�?�?a??e�????a?�?��e??a��

  • nginxe�?c?�expires 10i?�cache.confige�?c?�dest_domain=192.168.30.56 revalidate=12s

a??e�?e??a��a�?c?�a�?a?�i??agea??0-12sa?�e�?i??12sa?�a?Z?�?a?sa�z?????�e??a??e�??��e??a?�a��

  • nginxe�?c?�expires 10i?�cache.confige�?c?�dest_domain=192.168.30.56 revalidate=8s

a??e�?e??a��a�?c?�a�?a?�i??agea??0-8sa?�e�?i??8sa?�a?Z?�?a?sa�z?????�e??a??e�??��e??a?�a��

  • nginxe�?c?�expires 10i?�cache.confige�?c?�dest_domain=192.168.30.56 ttl-in-cache=25si?�dest_domain=. ttl-in-cache=20s

a??e�?e??a��a�?c?�a�?a?�i???��e????Ya??25si??e?�a??ttl-in-cachecs�e�?c?�a��

  • nginxe�?c?�expires 10; cache.confige�?c?�dest_domain=192.168.30.56 revalidate=15si?�dest_domain=. ttl-in-cache=20s

a??e�?e??a��a�?c?�a�?a?�i???��e????Ya??20si??e?�a??ttl-in-cachecs�e�?c?�a��

  • nginxe�?c?�expires 10;cache.confige�?c?� dest_domain=192.168.30.56 ttl-in-cache=15si?�dest_domain=. ttl-in-cache=20s

a??e�?e??a��a�?c?�a�?a?�i???��e????Ya??15si??e?�a??a�?e??ttl-in-cachecs�e�?c?�a��

  • nginxe�?c?�expires 10; cache.confige�?c?�dest_domain=. ttl-in-cache=20si?�dest_domain=192.168.30.56 ttl-in-cache=15s

a??e�?e??a��a�?c?�a�?a?�i???��e????Ya??20si??e?�a??a�?e??ttl-in-cachecs�e�?c?�a��

a�?c��

a??a�?c?�i?sttl-in-cache>revalidate>expires(nginx)

  • revalidate e?�e�?a��a��e�?c?�???a??e??a??e�?e??a��a�?c?�a�?a?�i??a��?z?a??e??a��a�?c?�a�?a?�i??a��e�?c?�?��?�?a��

  • ttl-in-cache e??a�Ya?�c��a�????a??a?�a??e�?a��a�?c?�a�?a?�a?�a??e??e��a??cs�?��e????Yi??a??e?�e�?e??a��cs�a?�aS�a??a??e�?a��a�?c?�a�?a?�a��

  • pin-in-cache a?????a??e??a??e�?a??c?�a�?a?�a??e?�a?�e��i??a?�a??a?�a�?a??e�?cs�?��e??a?�a��

  • a??a??c?�e�?c?�a?�i??a�?e??a??e�?cs�e�?c?�c�Y?�?a��

Was guilty of becoming what the rebelled from because while they fought to homework helper for homeworkhelper.net be left alone and independent, they took that from hawaii

分类: 配置文件 标签:
  1. 2013年7月16日16:01 | #1

    不错,很容易懂。

  2. 纸鸢
    2013年8月15日15:52 | #2

    哦,原来404的是说想按照nginx的配置。。。@liujen

  3. lzdzhy
    2013年9月14日14:25 | #3

    老赵,你的OPEN团队是哪几位?

  1. 本文目前尚无任何 trackbacks 和 pingbacks.