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
When the context path of an application is different from /,
the <c:url tag in JSP does not add the version (that is provided by the cache busting infrastructure of Spring 4.1) tot the URL of a static resource.
When you deploy my example webapp (see https://github.com/desmethans/cachebusting.git) on a local tomcat with / as the context path (the webapp runs then on localhost:8080)
the JSP tag <c:url value="/styles/default.css"/> produces correct HTML, with a version in the url:
/styles/default-e89bda525823a25214337af0003918c2.css
When you deploy the same webapp on a local tomcat with testing as the context path (the webapp runs then on localhost:8080/testing)
the JSP tag <c:url value="/styles/default.css"/> produces wrong HTML, without a version in the url:
/cachebusting/styles/default.css
Hans Desmet opened SPR-12459 and commented
When the context path of an application is different from /,
the <c:url tag in JSP does not add the version (that is provided by the cache busting infrastructure of Spring 4.1) tot the URL of a static resource.
When you deploy my example webapp (see https://github.com/desmethans/cachebusting.git) on a local tomcat with / as the context path (the webapp runs then on localhost:8080)
the JSP tag <c:url value="/styles/default.css"/> produces correct HTML, with a version in the url:
/styles/default-e89bda525823a25214337af0003918c2.css
When you deploy the same webapp on a local tomcat with testing as the context path (the webapp runs then on localhost:8080/testing)
the JSP tag <c:url value="/styles/default.css"/> produces wrong HTML, without a version in the url:
/cachebusting/styles/default.css
Affects: 4.1.2
Referenced from: commits b3bfa95
The text was updated successfully, but these errors were encountered: