For the complete documentation index, see llms.txt. This page is also available as Markdown.

Toggle cacheless mode

Turns development (cacheless) mode on or off, based on the enabled flag.

Toggle cacheless mode

patch

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.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
usernamestringRequiredExample: u123456789
domainstringRequired

Domain name

Example: mydomain.tld
Body
enabledbooleanRequired

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

Example: true
Responses
200

Success empty response

application/json
messagestringOptionalExample: Request accepted
patch/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/toggle
PATCH /api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/toggle HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "enabled": true
}
{
  "message": "Request accepted"
}

Last updated

Was this helpful?