Skip to content

Caching issue per theme based on User Agent Rules #39550

Open
@konstantinos158358

Description

Preconditions and environment

  • Magento ver. 2.4.7-p3
  • Php : 8.3.15
  • composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition
  • bin/magento setup:install --base-url="WEBSITE_URL" --base-url-secure="WEBSITE_URL" --backend-frontname="mybackend" --session-save="files" --db-host="localhost" --db-name="XXXXX" --db-user="XXXXX" --db-password="XXXXX" --admin-firstname="XXXXX" --admin-lastname="XXXXX" --admin-email="[email protected]" --admin-user="XXXXX" --admin-password="XXXXX" --language="en_US" --currency="EUR" --timezone="Europe/Athens" --use-rewrites="1"
  • bin/magento setup:upgrade (successfully)
  • bin/magento setup:di:compile (successfully)
  • bin/magento deploy:mode:set developer (successfully)
  • bin/magento cache:flush (successfully)

Frontend working properly
Admin working properly

Steps to reproduce

From Admin area navigate to:

  • Content | Design | Configuration
    Image
  • Edit the parent theme
    Image
  • Select Magento Blank as Applied Theme and Magento Luma as theme for mobile devices and Save Configuration [User Agent Rule: /iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini/]
    Image
  • Clear all caches and keep them enable.
    Image
  1. From Destop device navigate to default Magento Homepage
    Image
  2. From Mobile device navigate to default Magento Homepage
    Image
  3. From Destop device navigate to default Magento Homepage
    Image

Expected result

From Desktop device, homepage should keep as applied theme the Magento Blank, as selected from configuration settings.

Actual result

From Desktop device, homepage applied as theme the Magento Luma which selected only for mobile devices.

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Assignees

Labels

Reported on 2.4.7-p3Indicates original Magento version for the Issue report.

Type

No type

Projects

  • Status

    Ready for Confirmation

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions