Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preload Cache for User Agent Groups #567

Open
mavas84 opened this issue Oct 5, 2022 · 0 comments
Open

Preload Cache for User Agent Groups #567

mavas84 opened this issue Oct 5, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@mavas84
Copy link
Contributor

mavas84 commented Oct 5, 2022

In some cases, depending on the theme and the environment, cached pages may show the desktop version of the website for mobile/tablet users. In this case, W3TC can create a unique cache for different User Agent Groups in Performance>Cache Groups>Manage User Agent Groups
Enabling groups on mobile and tablet create a separate cache file for these group when the page is visited:

_index_slash_phones_ssl.html
_index_slash_phones_ssl.html_gzip
_index_slash_ssl.html
_index_slash_sl.html_gzip
_index_slash_tablets_ssl.html
_index_slash_tablets_ssl.html_gzip

However, when the Cache Preload is enabled in Performance>Page Cache, the cache is preloaded only for the Desktop version of the website and it only creates the files for the Desktop:

_index_slash_ssl.html
_index_slash_sl.html_gzip

Add the ability to preload the cache for mobile and tablet if the Manage User Agent Groups is enabled. A checkbox in the cache Preload section should be greyed out if the Manage User Agent Groups is not enabled, and is available to check if enabled.

Reference topic: https://wordpress.org/support/topic/mobile-cache-preload/

@mavas84 mavas84 added the enhancement New feature or request label Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant