tractorcow / silverstripe-dynamiccache

Simple on the fly caching of dynamic content for Silverstripe
39 stars 27 forks source link

After / is cached, /home/ stops redirecting #29

Closed axllent closed 8 years ago

axllent commented 8 years ago

It would seem that after a website's root path has been cached, /home/ stops redirecting to / as would generally be expected.

tractorcow commented 8 years ago

what headers do you get on /home/ response? (first and subsequent times).

Maybe Location header needs to be added to the cache evasion list.

axllent commented 8 years ago

/home/ initially provides a 301 redirect (ie: after a flush, before cache), however once / is cached, then /home/ doesn't redirect and provides a standard 200 response.

It should be easy to replicate I think, simply load /home/ on any cached site.

jonom commented 8 years ago

Have verified this issue and wonder if it's related to an issue where the form doesn't redirect back upon validation error. Maybe there's a general redirection conflict?

tractorcow commented 8 years ago

Fixed with #30