set cache-control header only when not already set by user
Cleaned up the source tree a bit