Project

cachewarp

0.0
No commit activity in last 3 years
No release in over 3 years
Verify cache and content delivery headers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

#CacheWarp

Gem targeted towards providing a solution to verify cache headers for content delivery services like Akamai by:

@bitweft @codeweft

##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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

##Community

##Build Status:

Dependency Status Code Climate