Removed the weird cache-control strings and fixed a logical error where each unknown function was redirected to the Hooks page.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | --
| Fixed tickets | #918
| License       | MIT
| Doc PR        | --