Runar Posted March 13, 2019 Posted March 13, 2019 I need to type this out to fully understand myself what I'm trying to accomplish. I have a webserver running nginx on www.example.com. Static assets are hosted on Amazon S3 (storage configuration set up in ACP) cnamed to cdn.example.com. I previously used Cloudflare on both S3 and the webserver, but I'm trying out some other solutions to see if there is any difference. What I want to do is: I want nginx to fetch static assets from S3, then process them with PageSpeed and cache them locally. I have a working nginx setup where assets are fetched from S3 and cached locally, but I have not yet tried with PageSpeed in the mix. Would it be as simple as adding the PageSpeed config to the proxy server block that does the fetching, or in the main server block (for www, not cdn)? Do I need to configure domains in PageSpeed (MapOriginDomain or something similar)? Will PageSpeed work without rewriting the HTML? The following resources have been a great help so far: https://stackoverflow.com/questions/44639182/nginx-proxy-amazon-s3-resources/44749584#44749584 https://www.modpagespeed.com/doc/downstream-caching#proxy_cache_conf https://devgeniem.github.io/wp-project/uploads/s3/
Recommended Posts
Archived
This topic is now archived and is closed to further replies.