Fixing execution order of etag middleware