When using S3 File System with CSS/JS aggregation behind a proxy, pay close attention to Trusted Host Settings. If you put an internal hostname in the trusted_host_patterns array (to call cron, for example), URLs inside aggregated CSS and JS files might get that internal hostname prepended to them, breaking the site’s styles.