static file request algorithm