todo: cachecontrol

- saved javascript snippet from salmon.js