Mobile app version of vmapp.org
Login or Join

Login to follow query

More posts by @Gloria169

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sent6035632

Because of the nature how redirects work, there are 2 requests made during a redirect.

The example will use redirected CSS file (from example.com/content.css to example.net/some/folder/content.css), but it works same way for all redirected content:


The initial request to fetch example.com/content.css.
The response for this request will be that it is redirected to example.net/some/folder/content.css.
The browser will fire another request to example.net/some/folder/content.css.
The browser will receive content.css.


Now, without redirection, this process would only need 1 request to process:


The initial request to fetch example.com/content.css.
The browser will receive content.css.


As there might be many resources redirected on a single web-page, you can see how that will impact performance as it needs to make two requests instead of one every time. Using Permanent Redirects helps here for clients as browser caches the redirection and should issue requests to redirected content straight away. This will not be the case for Google Crawler I assume, as it should really check raw (non-cached) requests every time too track changes in the redirects.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme