[Fixed]-Setting up Route53->CloundFront->Elasticbeanstalk infrastructure for Django stack

1👍

Given that your users have a session-cookie or some cookie that identifies them, you can whitelist this cookie in CloudFront.

The CloudFront cache will then only cache for users with the same cookie value, i.e. not for logged in users, but for anonymous users only.

CloudFront will by default forward your cache ttl, so you could set that from your beanstalk application.

👤tomfa

Leave a comment