Skip to content

Commit

Permalink
fix: Delete useless ResourceRequestFilter mappings - MEED-7004 - Meed…
Browse files Browse the repository at this point in the history
…s-io/meeds#2109 (#61)

Prior to this change, any URL was cached while the Cache HTTP Header should be applied systematically on static resources only. This change changes the Filter mapping list in order to include static resources only.
  • Loading branch information
boubaker authored Jun 6, 2024
1 parent a42ffef commit ff4f323
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion war/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

<filter-mapping>
<filter-name>ResourceRequestFilter</filter-name>
<url-pattern>/*</url-pattern>
<url-pattern>*.css</url-pattern>
<url-pattern>*.js</url-pattern>
<url-pattern>*.html</url-pattern>
<url-pattern>/images/*</url-pattern>
</filter-mapping>

<absolute-ordering/>
Expand Down

0 comments on commit ff4f323

Please sign in to comment.