Remove dead view cache code.

Now that cache files contain the response headers, this is no longer
needed. Remove what is now duplicate code.

Refs #2358