Name Last Update
..
agent Loading commit data...
cloudmgr Loading commit data...
container Loading commit data...
equeue Loading commit data...
lamp Loading commit data...
monitor Loading commit data...
networkbench Loading commit data...
onetimeupload Loading commit data...
promise Loading commit data...
pubsub Loading commit data...
qemuqmpclient Loading commit data...
resiliencytest Loading commit data...
resilient Loading commit data...
runner Loading commit data...
test Loading commit data...
README.cachecheacker.rst Loading commit data...
README.cloudmgr.rst Loading commit data...
README.networkbench.rst Loading commit data...
README.onetimeupload.rst Loading commit data...
README.webrunner.rst Loading commit data...
__init__.py Loading commit data...
apachedex.py Loading commit data...
cachechecker.py Loading commit data...
checkfeedaspromise.py Loading commit data...
generatefeed.py Loading commit data...
htpasswd.py Loading commit data...
onetimedownload.py Loading commit data...
securedelete.py Loading commit data...
systool.py Loading commit data...
zodbpack.py Loading commit data...

HTTP Cache Checker

Crawl a website and check the HTTP configuration.

Run

python2 cachechecker.py -o result.txt cachechecker.conf

Example of configuration

[web_checker]
url = http://example.org

working_directory = /tmp/cachechecker

# debug_level = info
debug_level = debug
file_log_path = /tmp/cachechecker.log

# http://labs.omniti.com/people/mark/ats_sa/slides.html#slide-18
traffic_server_cache = cHs
  cSsNfU

[header_list]
Last-Modified = True
Expires = True
Vary = Cookie,Authorization,Accept-Encoding
Cache-Control = max-age=600, stale-while-revalidate=360000, public

[no_header url=.*]
Set-Cookie = None

[no_header content-type=(image/.*|application/vnd.ms-fontobject|application/x-font-woff|font/truetype)]
Vary = None

[header content-type=image/.*]
Cache-Control = max-age=3600, stale-if-error=360000, stale-while-revalidate=360000, public

[header content-type=(text/css|text/plain|application/x-javascript|.*/javascript|application/vnd.ms-fontobject|application/x-font-woff|font/truetype)]
Vary = Accept-Encoding
Cache-Control = max-age=3600, stale-if-error=360000, stale-while-revalidate=360000, public

# Captcha
[header url=(.*/contactus$)]
Cache-Control = max-age=0, no-cache

# # IE PDF Bug
[header url=.*format=pdf]
Cache-Control = Private

[header url=.*format=]
Vary = Cookie,Authorization,Accept-Encoding
Cache-Control = max-age=600, stale-while-revalidate=360000, public

[erp5_extension_list]
prohibited_folder_name_list = web_page_module
  document_module
  web_site_module
prohibited_file_name_list = WebSection_viewAsWeb
  Base_viewHistory
  Base_download
  list