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

Caching JS/CSS content URL with query strings/argument shuld not be skipped. #396

Closed
ddur opened this issue Aug 31, 2021 · 0 comments
Closed

Comments

@ddur
Copy link

ddur commented Aug 31, 2021

As far as I understand this code:

# do not cache requests with query strings
cache is disabled for all content types, static (js/css) and dynamic (php)

Purpose of JS/CSS query argument in WordPress is not to return dynamic content but to change cached URL when WordPress Core, Plugin and/or JS/CSS file is updated. So, cache may be enabled and cache expiry time may be large/huge when query string is present on actually static content request. This may apply to other static file/content types which actually can't return dynamic content when query string is present. In example: images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant