Allow users to choose whether to optimize css.

Created on 9 May 2018, over 6 years ago
Updated 14 August 2023, over 1 year ago

I am running into an issue that may be considered a bug.

If you have s3fs enabled but you did not enable the css_aggregation and the corresponding redirects necessary to make css_aggregation work with s3fs then the print will f$config->get('force_download')ail causing an error :
file_get_contents(https://example.com/s3fs-css/css/css_uw1Zc3jXzLr2tejqtnrdS4uPG5H-K56kKb9... not found.

That's because entity_print is trying to get the aggregated css file from /s3fs-css which is supposed to redirect to s3 if it's been set up to do so: https://cgit.drupalcode.org/s3fs/tree/README.txt?h=8.x-3.x#n134

However, I don't have the css_aggregation set up nor do I have it css_aggregation using s3 yet entity_print tries to do that and assumes optimize css will succeed.

Proposed Solution:
- Allow users to choose whether to optimize css.

Patch attached.

πŸ› Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States awm

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024