Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: PhotoSwipe - Responsive JavaScript Modal Image Gallery 5.0.10 Minor update available for module photoswipe (5.0.10). Release: Twig Tweak 4.0.0-alpha5 New alpha version released for module twig_tweak (4.0.0-alpha5). Release: UI Styles 8.x-1.22 Minor update available for module ui_styles (8.x-1.22). Release: Bookable Calendar 3.1.0 Minor update available for module bookable_calendar (3.1.0). Release: Animated SDC 1.0.0 Initial release available for module animated_sdc (1.0.0)! Release: ViewMend Site Tracker 1.1.0 Minor update available for module viewmend_site_tracker (1.1.0). Release: Cybersource REST 1.0.2 Minor update available for module cybersource_rest (1.0.2). Release: Fox drush console 1.6.3 Minor update available for module fox (1.6.3). Module Revived: Bootstrap Cloud 7.0.0 Theme bootstrap_cloud updated after 16 months of inactivity (7.0.0). Security Coverage: Unrestricted Page Module unrestricted_page now has official Drupal security advisory coverage.

Request cleanup

1 sites Security covered Drupal 10–11
View on drupal.org

This module improves the efficiency of Drupal's internal page cache by removing common tracking and irrelevant URL query parameters. This ensures that the cache stores fewer unique pages, even when users arrive from different sources like Facebook or Google.

Increase internal page cache efficiency by removing URL query parameters coming from Facebook (fbclick), Google (utm_source, utm_medium,
utm_campaign), and any other parameter that can be ignored by Drupal.

This allows internal page cache to store less items, and avoid generating responses for different requests
that internally are handled by the same page controller and parameters.

Examples:

- https://example.com/node/1?utm_source=ad1 becomes https://example.com/node/1
- https://example.com/search?query=Findme&fbclick=111234322 becomes https://example.com/search?query=Findme

LIMITATIONS

If you use external page cache like Varnish, and have administrative access to its settings, it is better to remove unneeded parameters there, and avoid hitting Drupal
site completely. See this page https://www.getpagespeed.com/server-setup/varnish/strip-query-parameters... for
the reference.

If you use external page cache, but don't have administrative access to it, it is recommended to keep internal page cache on
and have non-null storage on it, i.e. do NOT uncomment this line in settings.php:

//$settings['cache']['bins']['page'] = 'cache.backend.null'

INSTALLATION

- composer require drupal/request_cleanup

Then enable module either from UI or drush.

CONFIGURATION

By default, module removes the following parameters:

- fbclick
- utm_campaign
- utm_source
- utm_medium

To override this list, add to settings.php this snippet:

$settings['request_cleanup.get'] = ['fbclick', 'utm_source', 'utm_medium', 'utm_campaign', 'yourparameter'];

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Sep 2024
Latest release
1 month ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.0.0 Stable 10–11 Jul 22, 2026
2.x-dev Dev 10–11 Jul 22, 2026
8.x-1.3 Stable Sep 30, 2024