package org.dukecon.server.impl

import groovy.util.logging.Slf4j

import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer
import org.springframework.boot.context.embedded.MimeMappings
import org.springframework.stereotype.Component

@Component
@Slf4j
public class ServletCustomizer implements EmbeddedServletContainerCustomizer {

    @Override
    public void customize(ConfigurableEmbeddedServletContainer container) {
		log.debug ("Adding manifest mime mapping!")
        MimeMappings mappings = container.mimeMappings
        mappings.add("manifest","text/cache-manifest")
        container.setMimeMappings(mappings)
    }
}
Set correct MIME Type for cache manifest
Set correct MIME Type for cache manifest
