introduces static page middleware