Jawr Integration with CDN (CloudFront)

We use Jawr to bind javascript and css for a large-scale Spring project. One of our requirements is to service all assets (js, images, css, etc.) using CDN (CloudFront).

So far, we have implemented the Jawr working directory in the central S3 bucket and mapped CloudFront on top to serve files from this bucket to a subdomain. Now we need to tell Jawr to use the CDN, not the Spring controller (and enable the cache hash).

Does anyone have any experience with this type of configuration? There seems to be a complete lack of documentation for Jawr in general and, in particular, for integrating Jawr with CDN.

Thanks in advance.

+4
source share

Source: https://habr.com/ru/post/1386496/


All Articles