URL diversity involves using different URLs to serve similar content.
This practice, while beneficial for tracking and analytics, can hinder caching efficiency.
The URL is treated as a whole when creating its signature, meaning every parameter affects the unique cache entry.
Each unique URL forces the server to process requests individually, increasing load times.
Examples:
Using positional parameters rather than key/value pairs can enhance security and SEO. Additionally, this approach can improve cache configuration and effectiveness by creating more predictable and efficient caching mechanisms.
| Aspect | Positional Parameters (Path) | Key/Value Pair Parameters (Query) |
|---|---|---|
| URL Structure | Parameters are included in the URL path. | Parameters are included in the query string. |
| Example URL | https://example.com/products/electronics/laptops/123 | https://example.com/products?category=electronics&subcategory=laptops&id=123 |
| Caching Efficiency | Can lead to efficient caching if URLs are well-structured and predictable. | Query parameters can cause varying URL signatures, making caching less predictable. For example: colour=1&cat=2 VS cat=2&colour=1. Same output, but different URL signature. |
| SEO | Generally better for SEO as search engines favor clean, hierarchical URLs without excessive parameters. | Query strings can be indexed by search engines, but too many parameters or irrelevant ones might dilute the keyword relevance and reduce SEO effectiveness. It's important to keep query strings concise and relevant. |
Salesforce B2C Commerce Cloud offers this feature to manage caching issues from URL diversity. Administrators can specify which query parameters to ignore, improving caching efficiency.
How It Works:
Enabling this feature reduces unique cache entries, improving cache hit rates and performance by serving more requests from the cache. This can be monitored via Reports and Dashboards, helping track cache hit versus ‘miss and store’ rates for optimization. Regular audits of ignored parameters against performance reports enhance site performance and user experience by ensuring efficient content delivery.
To maintain efficient caching and effective tracking:
Implementing these practices enhances site performance and user experience while maintaining valuable insights from analytics and other tools, crucial for a responsive and optimal B2C Commerce storefront.
002277452

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.