Add cdn url field.
Add middleware test.