Try to make caching a bit more "secure" so as to not be able to display php files.

Fixes #181