Title: Cache redirects?
Last modified: September 1, 2016

---

# Cache redirects?

 *  Resolved [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cache-redirects/)
 * On my sites I have some redirects (301 Moved Permanently) and WP Fastest Cache
   create for such redirects a cache and redirects don’t work when we go to such
   URL again. Example: I use Ceceppa Multilingua plugin and I have slugs for languages
   e.g. [https://mydomain.tld/en/contact](https://mydomain.tld/en/contact). When
   I go to URL [https://mydomain.tld/contact](https://mydomain.tld/contact) then
   it redirect to [https://mydomain.tld/en/contact](https://mydomain.tld/en/contact)
   BUT with WP Fastest Cache it’s doesn’t work.
 * [https://wordpress.org/plugins/wp-fastest-cache/](https://wordpress.org/plugins/wp-fastest-cache/)

Viewing 6 replies - 16 through 21 (of 21 total)

[←](https://wordpress.org/support/topic/cache-redirects/?output_format=md) [1](https://wordpress.org/support/topic/cache-redirects/?output_format=md)
2

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cache-redirects/page/2/#post-7460111)
 *     ```
       }else if(isset($_GET["preview"])){
       				return $buffer."<!-- not cached -->";
       			}else if($this->checkHtml($buffer)){
       				return $buffer."<!-- html is corrupted -->";
       			}else if(http_response_code() == 301 || http_response_code() == 302){
       				return $buffer;
       			}else{
       ```
   
 * I added like that. is it ok?
 *  Thread Starter [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/cache-redirects/page/2/#post-7460118)
 * Yes 🙂 Thank You very much! 🙂
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/cache-redirects/page/2/#post-7460120)
 * thank you too 🙂
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/cache-redirects/page/2/#post-7460152)
 * Your code caused the problem 🙂 so I added the following condition.
 * `function_exists("http_response_code")`
 *  Thread Starter [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/cache-redirects/page/2/#post-7460153)
 * Uhm, this function is available for PHP >= 5.4.0 – I didn’t realize that someone
   can use such old version of PHP 😛
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/cache-redirects/page/2/#post-7460157)
 * 😀

Viewing 6 replies - 16 through 21 (of 21 total)

[←](https://wordpress.org/support/topic/cache-redirects/?output_format=md) [1](https://wordpress.org/support/topic/cache-redirects/?output_format=md)
2

The topic ‘Cache redirects?’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

 * 21 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/cache-redirects/page/2/#post-7460157)
 * Status: resolved