Docs | imagemash.io
DashboardSign up for Free
  • 🎉imagemash.io
  • 🚀Getting Started
    • Simple CDN Link Usage
  • 💽Sources
    • IM Cloud Storage
    • Image URL
    • Storage Providers
      • Amazon S3
      • Google Cloud
      • S3 Compatible Storage
    • Web Folder
  • 🖼️Image Transform
    • Transform Options
      • Quality
      • Width
      • Height
      • Scale
      • Crop
      • Gravity
      • Background
      • Border
      • Round
      • Output Format
      • Angle (Rotate)
      • Flip
      • Helpers
        • x, y
      • Filters
        • Tint
        • Flatten
        • Grayscale
        • Blur
        • Sharpen
        • Median
        • Threshold
        • Negative
    • Transform Cheat Sheet
    • Named Transforms
  • 🛠️API
    • API - Good to knows
    • API Methods
      • Account
        • Named Transforms
          • Get named transforms
          • Add named transform
          • Remove named transform
        • Image URL Restriction
          • Get keyword list
          • Add keyword to list
          • Remove keyword from list
          • Change keyword list usage
      • Storage
        • Upload file
        • Get and search files
        • Delete files
        • Add new tags to files
        • Set tags of files
        • Remove tags from files
        • Purge Cache
      • Optimize / Transform
  • ❓How it works?
    • Custom Domain
    • Bandwidth
    • Cloud Storage
    • Caching
    • Purge Cache
    • Limits
  • Contact Us
Powered by GitBook
On this page
  1. How it works?

Purge Cache

PreviousCachingNextLimits

Last updated 2 years ago

Once a file is delivered through CDN Link, that means the file is distributed to 200+ Cloud Cache servers around the world and also stored in our internal caches.

Let's say you have a published image called john.imagemash.io/w_100/logos/logo.png, even if you delete the object from your storage or rename it, the file will be accessible from john.imagemash.io/w_100/logos/logo.png. Because it is still a valid file in Caches. Then you have a couple of options to overcome this situation.

  • Add a dummy query to your file. (Random string. Split with ? ) Eg. john.imagemash.io/w_100/logos/logo.png?1234

  • Change the name of your file and use the new one. Eg. /logos/logo_v2.png

  • Change the folder of your file. Move, copy, or upload to another directory and use the new one. Eg. /newLogos/logo.png

  • Use Cache Purging. Read below.

In order to purge caches, you have 2 options:

  • By creating a new purge request through your Dashboard

  • By using our

Purge path requirements

In order to purge a file or path, your input should satisfy at least 1 of the conditions below

imagemash will purge all of your files whose paths begin with your input. Consider your input as a search string.

  1. The path should be the complete path of the file. That means a valid file path and an extension should exist. Valid Examples: /logo.png /company/logo.png Invalid Examples: /logo /company/ /logo.png/

  2. The path should be at least 15 characters long. That means it could be a complete path, part of the path, or an incomplete path. Valid Examples: /companies/my_company /companies/my_com (It will purge all file paths that start with this value) /my_image_repository /my_image_repository/ /img.png (Valid because it satisfies the first condition) Invalid Examples: /logo /company/ /company/imgs

  3. The path should be nested in at least 2 folders. That means it could be a complete path, part of the path, or an incomplete path. Valid Examples: /img/big/ /img/big/my_ (It will purge all file paths that start with this value) /img/big/logo.png /my_company_big/ (Valid because it satisfies the second condition)

    Invalid Examples: /companies/ /company/ /company/imgs

All users have a monthly limit of 500 cache purge requests. Please contact us if you need more limits.

❓
✅
✅
❌
❌
❌
✅
✅
✅
✅
✅
❌
❌
❌
✅
✅
✅
✅
❌
❌
❌
Purge Cache API