Move the writing of the no cache header to inside playlist type event.

Let the client determine if it should cache or not unless we are
publishing a live stream.