Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
/ net-purge Public archive

adds PURGE to net/http for cache-busting accelerators like Varnish or Squid

License

Notifications You must be signed in to change notification settings

arbales/net-purge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

net-purge

Adds HTTP PURGE requests to net/http for use in cache-busting.

Example Use

require 'net-purge'

Net::HTTP.start('417east.com') {|http|
  request = Net::HTTP::Purge.new('/')
  response = http.request(request)
  puts response.body # Guru Meditation
}

Copyright © 2010 Austin Robert Bales. See LICENSE.txt for further details.

About

adds PURGE to net/http for cache-busting accelerators like Varnish or Squid

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages