The following apache and nginx configurations will handle compression and browser caching. A few different WordPress plugins can be used for asset minification.
mod-pagespeed may be available for configuration as an apache or nginx module. If available, there's no need to use the individual apache or nginx configurations. Mod-pagespeed will handle compression and browser caching, making the apache and nginx configurations unnecessary. The WordPress plugins are still needed for asset minification as they ensure assets are loaded in the proper order once minified.
Image optimization should be done using the EWWW Image Optimizer plugin.