humanmade / humanmade/altis-cloud

Redirects are not cached for wp_old_slug_redirect

Open
#403 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
9
Forks
2
Avg merge
6d 1h
Merged PRs (30d)
23

Description

Steps to reproduce:
1. Create a post with date day `x`.
2. Update post with date day `y`
3. Visit old url with date of `x`, observe headers in redirect.

The `Location` is added correctly, however there is no `max-age` in the `Cache-Control` and no `X-Batcache: HIT` status. I've created https://github.com/humanmade/batcache/pull/21 to fix that. Previously `cache_redirects` would not work if `Cache-Control: max-age=0` is also sent, which is often the case.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.