moved snapshot generation out of the html handler to prevent that
existing cache entries cause that the handler is not executed