You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Marketing tools love to throw useless url parameters into the mix, like:
utm_source
utm_medium
source
ad_network
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
The text was updated successfully, but these errors were encountered:
I'm not sure if they've been documented yet, but have you seen statamic/cms#10701? It allows you to specify query parameters which'll be ignored when Statamic decides if a page already exists in the static cache.
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:
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
The text was updated successfully, but these errors were encountered: