realestate-com-au / akamai-rspec

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

Use debug headers for cache #12

Closed patrobinson closed 8 years ago

patrobinson commented 8 years ago

Context

be_cacheable and not_be_cached fail because they can't find the X-Cache header

  2) staging network requests are not cacheable
     Failure/Error: expect(url).to not_be_cached.and be_forbidden

     RuntimeError:
       x_cache header does not indicate an origin hit: ''

Changes

Use debug headers when checking cacheability

Bonus changes

Fix the README documentation

mmollaverdi commented 8 years ago

Same here 😃

mmollaverdi commented 8 years ago

This looks good. Thanks @patrobinson