Skip to content

Duplicate cache headers in spring boot 1.5.1 #8188

@apixandru

Description

@apixandru

There's this bug in IE that the fonts from fonts awesome don't work very well with https. It has some problems with caching or something. (see FortAwesome/Font-Awesome#6454 )

To get around this, we set up a filter registration bean.

@Bean
public FilterRegistrationBean fixIeHttpsFontCache() {
	FilterRegistrationBean registration = new FilterRegistrationBean();
	registration.setFilter(new InternetExplorerHttpsFontFilter);
	registration.setDispatcherTypes(EnumSet.allOf(DispatcherType.class));
        registration.setUrlPatterns(/*urls for fonts */);
	return registration;
}

The Internet Explorer Https Font filter would just set the http request headers to

Expires -1
Cache-control public
Pragma cache

This worked fine until 1.4.4, but on 1.5.1 it no longer works. I'm guessing that the way to set headers has changed lately or that the filters should be registered differently?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions