The Safe Mode lets you test NitroPack’s features in an isolated environment. That way, you can experiment without affecting your visitor’s experience.
Here’s how it works:
When you turn the Safe Mode on (from the General Settings), it disables NitroPack for your website. While this mode is active, you can access the test (optimized) version of any page by adding ?testnitro=1 to its URL, like this:
At the same time, your website’s visitors land on the regular URLs.
Put simply, while the Safe Mode is active:
- Your website is up and running as if NitroPack is disabled.
- You can access the optimized (test) version of any page by adding ?testnitro=1 to its URL.
Any changes you make while in Safe Mode affect only the test pages. This lets you experiment with settings without affecting the user experience.
Just remember that after disabling the mode, all changes will be transferred to your live website. If you don’t want that, make sure to reverse any changes you made while in Safe Mode before turning it off.
Using The Safe Mode - Example
Let’s say you want to experiment by adding Custom CSS to your site. Just enable the Safe Mode, write your Custom CSS and save the settings.
After that, the results will take place only on the ?testnitro=1 URLs. You can then check how test pages look and run them through PageSpeed Insights, GTmetrix, or any other site speed tool.
That way, you know what to expect in terms of site speed and appearance.
When you’re done testing, you can publish the Custom CSS on your live website by:
1. Turning off the Safe Mode
2. Saving the settings
3. Purging the website’s cache from the Dashboard
On the other hand, if you don’t want to keep the change on your website:
1. Delete the Custom CSS
2. Disable the Safe Mode
3. Save your settings