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
2 months agoTegan
29 days agoHoward
1 months agoLaquanda
1 months agoKaitlyn
1 months agoTomas
2 months agoGlen
2 months agoGearldine
3 months agoVan
2 months agoDenny
2 months agoTimothy
2 months agoBroderick
3 months ago