Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set asset-pipeline skipNonDigest to true #412

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

jamesfredley
Copy link
Contributor

since Grails takes advantage of the manifest.properties file to properly map requests for non digested file names to the digested equivalent

skipNonDigests = true should be added to the assets block {} in build.gradle

these files are not needed in a Grails app and this drastically reduces the size of the jar/war.

"By default both digested named versions of assets as well as non digested named versions are generated as well as the gzip equivalents. Some frameworks dont actually need the non digested named versions ( ratpack, grails, spring-boot, and servlets). These frameworks take advantage of the manifest.properties file discussed earlier in the documentation to properly map requests for non digested file names to the digested equivalent and preserve compatibility with libraries that may not work well with digested file names.

Tip
Change skipNonDigests to true to help reduce the file size of your final generated project.

Tomcat will automatically still serve files by non digest name and will copy them out using storagePath via the manifest.properties alias map. This simply cuts storage in half."

https://web.archive.org/web/20240425133323/http://www.asset-pipeline.com/manual/index.html

since Grails takes advantage of the manifest.properties file to properly map requests for non digested file names to the digested equivalent
@jamesfredley jamesfredley changed the base branch from 7.0.x to 6.2.x October 24, 2024 03:55
@jamesfredley jamesfredley merged commit 3434332 into 6.2.x Oct 24, 2024
10 checks passed
@jamesfredley jamesfredley deleted the asset-pipeline-skipNonDigests branch October 24, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Grails 6.2.2: asset-pipeline skipNonDigests = true should be added to the assets block {}
2 participants