Site structure
Version 5.x > Site structure > 301 redirects for GetImage View modes: 
User avatar
Member
Member
andrew-tod - 7/27/2012 8:08:32 AM
   
301 redirects for GetImage
I'm looking at SEO optimisation and using the Web Console feature in Firefox to review live header information as pages are loading.

Although the pages themselves are returning 200 codes, one thing I am seeing a lot of which will slow down page speed load (and affect SERPs) is 301 codes for all images returned using the <%# GetImage(...) %> in a transformation. This results in...

http://www.domain.com/getattachment/e4f73638-a7df-4c80-bac1-c5a3c5782f10/.aspx?maxSideSize=75&width=75&height=75 [HTTP/1.1 301 Moved Permanently 285ms]

The image is then reloaded at its correct location returning a 200 code.

As this must be affecting page load speed, is there any way of returning the correct image URL immediately without going via the 301 redirect?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 7/28/2012 7:02:23 AM
   
RE:301 redirects for GetImage
Hello,


the 301 redirects does not affect SEO. It can be slower than accessing the file system directly but it allows to check the permissions and workflow step by Kentico and manage cache of this image by Kentico. However, if you want to use the direct file paths, you can link an image directly (without using CMS) or use media files (Media library settings) and set up:

Use permanent URLs: unchecked

Then it will use the physical paths of media files. Please be aware that these links do not check the permissions and if you move the file, the link will be invalid. The permanent URLs work even if you move the file.


Best regards,
Helena Grulichova

User avatar
Member
Member
andrew-tod - 8/7/2012 4:17:17 AM
   
RE:301 redirects for GetImage
Helena

Thanks for replying to this. I've just taken one of the pages from my site and totalled up the load time for each item using the Web Console in Firefox. Items loaded using the GetImage transformation (resulting in the 301) accounted for 45.8% of the total page load time - which obviously will result in a significantly slower page load time, which in turn will affect SERPS. I assume you are not disputing that page load time affects SERPS?

These images are loaded using transformations as they are files uploaded as part of a custom document type - so I don't think linking to them directly is possible using a transformation?

Is there any other way of loading the files directly to try and reduce the page load time - every millisecond counts!?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 8/8/2012 3:54:21 AM
   
RE:301 redirects for GetImage
Hello,


Our specialists studied the relationship between page load and SEO and influence of page load is minimal. The content is the most important.

Please see here: Optimization tip - Speed up your images and files for more details how to improve the performance of images. I hope it will help to you.

It is also possible to get the physical path of images by API. Then you can avoid Kentico handling (it will not be able to secure it or cache on Kentico side then thus it is not recommended). You can find these methods in the API Reference.


Best regards,
Helena Grulichova