Fix output and image caching problems.

Remove redundant headers and max-age directive.