Hosting: Cache
Toggle cacheless mode
Changed onTurns 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
Example request
{
"enabled": true
}Response
Success empty response
Example response
{
"message": "Request accepted"
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking