There might be a better way of doing this. Perhaps something like (syntax will be wrong)

```
if ($ancient_browser && !$uri ~* (png|css|woff) {
  rewrite  ^  /shared/oae/errors/unsupported.html;
  break;
}
```