Pixboost
  • Overview
  • Quickstart
  • Tools and Setup
    • Source Images
      • Adding Source Image Domain
      • Adding HTTP Image Source
      • Adding AWS S3 Bucket Image Source
    • Managing API Keys
    • Managing Users
    • Snippet Generator
    • Custom Domain Name
    • Cache Invalidation
    • HTTP/2 Support
    • HTTP/3 Support
  • API. URL-based integration
    • Resize
    • Fit
    • Optimise
    • As is
  • Using with React
  • Shopify Integration
  • Automated Workflows
    • Cache Invalidation
    • Warmup
    • API Secrets
  • Performance Testing
  • Open Source Version
Powered by GitBook
On this page
  • Description
  • Parameters
  • Response
  • Example
  • Limitations

Was this helpful?

  1. Automated Workflows

Cache Invalidation

PreviousAutomated WorkflowsNextWarmup

Last updated 2 years ago

Was this helpful?

API endpoint - DELETE /api/2/img/[IMAGE-URL]?auth=[API_SECRET]

Description

Cache invalidation invalidates images cached on CDN and Pixboost 2nd level cache.

Example:

curl -X DELETE 'https://pixboost.com/api/2/img/http://www.midday.coffee/banner.jpeg?auth=ABCDEF'

Parameters

API_SECRET - .

Response

200 - Image has been invalidated.

202 - Invalidation process began and will finish soon. Usually it will take up to the 5 minutes.

401 - Failed authorization. Image domain is not in the list of

Example

You can find reference example of using cache invalidation workflow with S3 bucket .

Limitations

Please, be aware that invalidations don't affect cached copies in web browser caches or caches operated by third-party Internet service providers.

In most cases, using versioning on file names is a better option.

secret key
images sources
here