Hosting: Cache

Toggle cacheless mode

Changed on

Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching.

patch/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/toggle

Request

  • Base URL: https://developers.hostinger.com
  • URL: https://developers.hostinger.com/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/toggle
  • Auth: HTTP bearer

Path parameters

usernamestring required
Example:u123456789
domainstring required
Example:mydomain.tld

Domain name

Request body

enabledboolean required

Turn development (cacheless) mode on (true) or off (false) for the website.

Example request

{
  "enabled": true
}

Response

Success empty response

messagestring

Example response

{
  "message": "Request accepted"
}

Changes