You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CacheControlHeaderWriter checks first before writing its corresponding headers.
Since HeaderWriterFilter writes headers at the end of a request, it makes sense that each HeaderWriter implementation would check whether its corresponding headers have already been written before overriding them.
That is, instead of doing:
response.setHeader(name, value)
do:
if (!response.hasHeader(name)) {
response.setHeader(name, value);
}
The text was updated successfully, but these errors were encountered:
Related to #5193
CacheControlHeaderWriter
checks first before writing its corresponding headers.Since
HeaderWriterFilter
writes headers at the end of a request, it makes sense that eachHeaderWriter
implementation would check whether its corresponding headers have already been written before overriding them.That is, instead of doing:
do:
The text was updated successfully, but these errors were encountered: