realestate-com-au / akamai-rspec

Test your akamai configuration with rspec
24 stars 13 forks source link

be_served_from_origin doesn't work if cache key doesn't include origin hostname #31

Open amcinnes opened 6 years ago

amcinnes commented 6 years ago

The be_served_from_origin checks the hostname in the cache key, and assumes this is going to be the origin hostname. If you set cache key to incoming host header, be_served_from_origin will fail.

If there's no possible way to check the actual origin hostname, perhaps we could deprecate be_served_from_origin and replace it with something called e.g. have_cache_key_hostname that more clearly describes what it does.