Page Cache Query Ignore
This module improves page caching performance by allowing you to exclude specific query parameters from the cache key. This prevents variations of the same URL with different tracking codes or unimportant parameters from being cached separately, reducing cache size and improving speed. You can configure which query parameters to ignore at the site's performance settings.
Page Cache Ignore query parameters improves the performance of the page_cache module by removing client side variables from the cache key.
As an example: with the Drupal core page_cache implementation, the following
URLs will be considered different.
By setting the query parameters to gclid, and choosing exclude as the type, these links will be considered identical by the cache and performance will be greatly improved. This will also reduce the size of your cache. With 2.1+ you can choose to use an exclusion or inclusion list of query parameters.
This module is not a replacement to a properly configured CDN. However, it will provide a significant improvement where a CDN is not an option or desired.
Configuration
- Configure the query parameters that you wish to ignore in Administration > Configuration > Development > Performance > Page cache query ignore.
- Provide a list of query parameters and select the type, then click Submit.