The web boost feature allows you to enhance the loading speed of your website. This improvement can significantly boost your website’s SEO and enhance the overall user experience.
Consider a large e-commerce website that serves thousands of visitors daily. By implementing VergeCloud's web boost features, the website can load faster, ensuring that users have a seamless shopping experience, ultimately leading to higher conversion rates.
Enabling this option compresses your website's CSS and JavaScript files, removing unnecessary spaces and comments to enhance loading speed. You can also enable optimization individually for CSS and JS files using page rules.
curl --location --request PATCH 'https://napi.vergecloud.ir/cdn/4.0/domains/example.com/acceleration' \
--header 'authority: napi.vergecloud.ir' \
--header 'accept: application/json, text/plain, */*' \
--header 'authorization: API KEY 1 2 3 4' \
--header 'Content-Type: text/plain' \
--data '{"status":"on","extensions":["css"]}'
This feature allows for automatic conversion of PNG, JPG, and GIF files to WebP format, improving loading times. Keep in mind that web acceleration occurs only after content is cached on VergeCloud edge servers.
curl --location --request PATCH 'https://napi.vergecloud.ir/cdn/4.0/domains/example.com/acceleration' \
--header 'authority: napi.vergecloud.ir' \
--header 'accept: application/json, text/plain, */*' \
--header 'authorization: API KEY 1 2 3 4' \
--header 'Content-Type: text/plain' \
--data '{"status":"on","extensions":["png"]}'
The Image Resize feature allows for dynamically resizing images based on user requests, significantly reducing processing power and storage requirements. This feature supports JPG, PNG, and WebP formats, with a size limit of 2 MB and dimensions not exceeding 3000x3000 pixels. Images beyond these specifications will not be resized.
curl --location --request PATCH 'https://napi.vergecloud.ir/cdn/4.0/domains/example.com/image-resize' \
--header 'authority: napi.vergecloud.ir' \
--header 'accept: application/json, text/plain, */*' \
--header 'authorization: API KEY 1 2 3 4' \
--header 'content-type: application/json' \
--data '{"status":"on"}'
To validate the configurations, you can use tools like curl to test API responses or dig for DNS records. Ensure that the changes you made reflect correctly in your website’s loading speed and image processing behavior.
curl -X GET 'https://napi.vergecloud.ir/cdn/4.0/domains/example.com/acceleration' \
--header 'authorization: API KEY 1 2 3 4'
Utilize the command above to check the current status of web acceleration features.