README.md in imgix-1.1.0 vs README.md in imgix-1.2.0
- old
+ new
@@ -1,8 +1,8 @@
# Imgix
-Official Ruby Gem for signing [imgix](http://imgix.com) URLs. Tested under 1.9.2, 2.2.2, JRuby 1.7.19, and Rubinius 2.2.7.
+Official Ruby Gem for signing [imgix](http://imgix.com) URLs. Tested under 2.3.0, 2.2.4, 2.1.8, jruby-9.0.5.0, and rbx-2.11.
[![Build Status](https://travis-ci.org/imgix/imgix-rb.png?branch=master)](https://travis-ci.org/imgix/imgix-rb)
## Installation
@@ -75,9 +75,21 @@
For example to use the noise reduction:
``` ruby
path.noise_reduction(50,50)
```
+
+
+## Purge Cache
+
+If you need to remove or update an image on imgix, you can purge it from our cache by initializing a client with your api_key, then calling Imgix::Client#purge with the resource path.
+
+```ruby
+client = Imgix::Client.new(host: 'your-subdomain.imgix.net', api_key: 'your-key')
+client.purge('/images/demo.png')
+```
+
+To learn more about purging assets with imgix, [see our docs](https://docs.imgix.com/setup/purging-images).
## URL encoding and signed ImgIX URLs
Some important third parties (like Facebook) apply URL escaping to query string components, which can cause correctly signed ImgIX URLs to to be transformed into incorrectly signed ones. We URL encode the query part of the URL before signing, so you don't have to worry about this.