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

Minify AutoCSS/AutoJS htaccess header link cleanup for Page Cache #729

Open
cssjoe opened this issue Aug 23, 2023 · 0 comments
Open

Minify AutoCSS/AutoJS htaccess header link cleanup for Page Cache #729

cssjoe opened this issue Aug 23, 2023 · 0 comments
Labels
bug Something isn't working C: Minify

Comments

@cssjoe
Copy link
Member

cssjoe commented Aug 23, 2023

If Page Cache and Minify Auto are enabled and then Minify is disabled, there are "Header add Link" lines that remain in "wp-content/cache/page_enhanced/.htaccess". This causes browsers to load CSS and JS files that no longer exist.

The issue appears to be resolved if the exclude in https://github.com/BoldGrid/w3-total-cache/blob/2.4.1/PgCache_Plugin_Admin.php#L94 is removed, but may break other functionality.

The lines are added by https://github.com/BoldGrid/w3-total-cache/blob/2.4.1/Minify_AutoCss.php#L296-L299 and https://github.com/BoldGrid/w3-total-cache/blob/2.4.1/Minify_AutoJs.php#L323-L326.

The Page Cache cleaner process is already slow, so we don't want to add more time to the process, but we should weigh the options.

@cssjoe cssjoe added bug Something isn't working C: Minify labels Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working C: Minify
Projects
None yet
Development

No branches or pull requests

1 participant