how to remove the charset=UTF-8 in the Content-type in Response Headers?
it was an image file and i want the Content-type value to be just image/png. but instead, it has charset=UTF-8 value as well. i want to remove this because i suspect this is the cause of my caching problem. sorry for my bad english. if there are any expert that can help me, it would be very much appreciated!
can you point out the path or if possible, the YAML import command? i don’t see the hstResponse inside the hst:component and i cannot set it as well. did i miss something?
After some debugging I found that this charset=UTF-8 is added by tomcat. Couldn’t find where the config for this is however. You can set a breakpoint at org.hippoecm.hst.servlet.BinariesServlet#writeResponse method’s “response.setContentType(pageMimeType);” line and observe the response.getContentType header to verify.
i have tried all the suggestion that the tread mentioned. it didn’t remove the charset in content type, even after i modify the characterencodingfilter. Did i miss something or am i configuring it wrongly? can you guide me on how and where should i modify this param?
You realize that you are potentially screwing up any user submitted data by doing so? (so, if you are using forms submitting, any none ascii characters will be processed by whatever character set your sever is configured)
yes i do realize, i want to do this so i can troubleshoot my caching problem, i suspect this charset inside content-type was the one causing it. thank you for your concern btw!