The Client has implemented a different category/search layout for mobile and desktop. The code uses a session attribute called deviceType to choose the corresponding layout. This attribute it populated from the browser user agent. After this implementation they have run into these problems:
* Sometimes desktop pages are being served to both desktop and mobile customers.
* Sometimes mobile pages ate being served to both desktop and mobile customers.
The page has caching implementedthat depends; on promotions. SEC is very important and the site traffic is high.
Which solution should the Architect select to resolve the issue without impacting the existing requirements?
To resolve the issue of incorrect page versions being served across different devices, changing the URL structure to include device-specific parameters can be highly effective. By adding parameters such as 'desktop' or 'mobile' to the URLs:
The caching mechanism can differentiate between the content for different device types, thus caching and serving the correct version of the page according to the device type specified in the URL.
This method allows for maintaining existing caching strategies linked to promotions and ensures that SEO is not adversely affected since the content remains the same per device type but is merely served through different URLs.
This approach addresses the core issue without requiring disabling of caching or reengineering existing promotional structures, hence preserving site performance and user experience.
Felicidad
1 months agoLaquanda
5 days agoKaitlyn
8 days agoTomas
1 months agoGlen
1 months agoGearldine
2 months agoVan
15 days agoDenny
21 days agoTimothy
23 days agoBroderick
2 months ago