-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
As mentioned in
statamic/cms#3111 (comment)
a useful feature would be to let static_caching.ignore_query_strings accept an array of query strings as well.
This could be used to filter the url parameters in https://github.com/statamic/cms/blob/6969fb6c54ce7f6630ae36d0d814aa6f4341c8d8/src/StaticCaching/ServiceProvider.php#L42
Why would this be useful?
Marketing tools love to throw useless url parameters into the mix, like:
- source
- ad_network
- utm_source
- utm_medium
- utm_campaign
- utm_id
- utm_term
- utm_content
- gad_source
- gad_campaignid
- gclid
- _gl
- gbraid
- amp
- __gads
- __atuv
- mpid
forcing Statamic to build these pages uncached, and creating cache files for a request that will only ever be used once.
This solution would leave the current nginx rules unable to resolve the file, but it would still be much faster and space efficient since it would be able to resolve the cache in PHP
Metadata
Metadata
Assignees
Labels
No labels