Ruby Gem to verify cache and content delivery headers
This project is maintained by codeweft
Gem targeted towards providing a solution to verify cache headers for content delivery services like Akamai by:
##Usage
###Using Ruby Code
Using CacheWarp object:
# Require CacheWarp in your file
require 'cachewarp'
# Initialize Request Object
request = CacheWarp.new('http://www.akamai.com/')
# Fetch Request
request.fetch
# Get Response Headers
request.response_headers
# Verify 'TCP HIT' i.e if Akamai is caching the request
request.is_cached?
One Liner:
# Returns 'false' since Google does not cache using Akamai CDN
CacheWarp.new("http://www.google.com/").is_cached?
###Console/CommandLine/Terminal/System Command
# Following is an example of non zero exit code. Run the following command on terminal
# Useful to verify caching post deployment using CI tools like Jenkins and GO
$ cachewarp http://www.google.com/ --quiet
##Installation
Using Bundler
# Add to Gemfile
gem "cachewarp", "~> 0.0.2"
# Install Gem
$ bundle
Using gem command
$ gem install cachewarp
##Change Log:
0.0.2
* Now you can directly perform 'CacheWarp.new('http://www.akamai.com/').is_cached?'
0.0.1
* Provision to verify TCP HIT in Akamai cache
##Contributing
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)##Community
##Build Status: