How long does Google Chrome cache a resource if expires and/or no-cache headers are not set?

前端 未结 2 817
故里飘歌
故里飘歌 2020-12-29 18:22

We have been having a problem with Chrome caching a resource on our Glassfish server. The expires and no-cache headers are not being sent and the resource (an approximately

2条回答
  •  一个人的身影
    2020-12-29 18:50

    DEFAULT_CACHE_TIME = 300

    I found the above by searching at http://code.google.com/p/chromium/source/search?q=DEFAULT_CACHE_TIME&origq=DEFAULT_CACHE_TIME&btnG=Search+Trunk for "DEFAULT_CACHE_TIME".

    There's a file called "chromeextensionsdocs.py" that contains the DEFAULT_CACHE_TIME.

    I believe this is seconds based on the example given at http://code.google.com/appengine/docs/python/memcache/overview.html
    In "chromeextensionsdocs.py", the DEFAULT_CACHE_TIME is sent as the last param in memcache.add

    I'm not totally sure if this is the right value or not but seems likely that it is when putting the pieces together.

提交回复
热议问题