Fix bug with a non GET causing a 405 from the static asset handler, even if there was no file.
Don't set the session cookie unless absolutely necessary.