Configure Prefetching
You have several options for managing Prerender prefetching configurations.
- Prefetching tab - In the Prefetching tab in the web console, you can view and manage prefetching configurations for an origin.
- REST API - Macrometa provides a API calls that allow you to view and manage prefetching configurations for an origin.
View Prefetching Configurations
- Web Console
- REST API
Follow these instructions to view prefetching jobs in the web console.
- Log in to your Prerender dashboard.
- Click Prefetching
- Click Configuration.
Prefetching Configuration Fields
Prerender provides the following prefetching configuration fields. Field names in the web console differ from those in the API responses. Refer to the API endpoint documentation for a full explanation of the API response.
- Status - Whether the configuration is active or inactive.
- Origin URL - The origin URL.
- Sitemaps - The sitemap path, if the origin has one. Prerender will prefetch all URLs on the sitemap when the configuration is active.
- Scheduling - Cron expression entered to trigger the prefetching job.
- Devices -Indicates whether the prefetch was rendered for just desktop or desktop and mobile.
- Actions - Allows you to update your configuration.
Configure Prefetching
- Web Console
- REST API
A new prefetch configuration appears in the web console when you add a new origin in the Origin Settings tab. For more information about viewing and adding origins, refer to Manage Origins.
By default, this new configuration is inactive and unscheduled. Follow these instructions to activate it:
- Log in to your Prerender dashboard.
- Click Prefetching.
- Click Configuration.
- Click the Actions icon.
- In Cron Expression for Scheduling, enter the cron expression that will dictate how often the job runs. The cron expression follows the unix-cron string format (* * * * *).
- In Devices, select the devices that you want to prefetch pages for.
- Click Add.
Edit Prefetching Configuration
- Web Console
- REST API
Follow these instructions to edit a prefetching in the web console.
- Log in to your Prerender dashboard.
- Click Prefetching.
- Click Configuration.
- Click the Actions icon.
- In Cron Expression for Scheduling, enter or update the cron expression.
- In Devices, select the devices that you want to prefetch pages for.
- Click Update.