Howto: using aws cloudfront to mask raw url and add caching

I’m not sure if anyone is having issues with this or solving in differently.

To me this seemed like easiest way.

Please comment if you see any issues.


I think doing this via your DNS provider is simpler and involves one less centralized service.

Agreed, but I think it’s important people know they could save money by adding cache to their application.

It’s also not a redirect it’s a proxy so it masks the raw url completely

1 Like

You can do DNS forwarding with masking as well.

1 Like

Indeed, I’m just trying to give people choices. Cloudfront is an extremely powerful enterprise tool. If anyone does something more professional they might want to control their traffic flow or add global caching. Maybe they want to block known spammer ips or certain countries.

Only sharing because you asked if people were doing it differently, and you mentioned the simplest way :slightly_smiling_face:

Here’s another alternative.