default event is 'message', and added cache-control header to polyfill