You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#172 adds configuration to disallow specific status codes from being cached.
In most scenarios, you don't want 404 pages to be cached. There may be other status codes that we also don't want cached by default such as 500, 403, etc... we should add those by default to the disallow list for CMS 6. Alternatively, we could add a new allow list to only allow caching 200 and redirect responses by default.
Notes
People will want to change this configuration - so make sure to add a key that can be overridden, and filter the config with array_filter() to remove empty values. This means in projects people can effectively unset a default status code by setting its value to null.
The text was updated successfully, but these errors were encountered:
Finding out that a resource is missing is not always a trivial thing. And normally it should be missing for everyone. It sounds like something we would want to cache.
#172 adds configuration to disallow specific status codes from being cached.
In most scenarios, you don't want 404 pages to be cached. There may be other status codes that we also don't want cached by default such as 500, 403, etc... we should add those by default to the disallow list for CMS 6. Alternatively, we could add a new allow list to only allow caching
200
and redirect responses by default.Notes
array_filter()
to remove empty values. This means in projects people can effectively unset a default status code by setting its value tonull
.The text was updated successfully, but these errors were encountered: