Inhalte aufrufen

Profilbild

Image optimisation, SEO and using a CDN


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
6 Antworten zu diesem Thema

#1 nickh

nickh

    Erfahrener Benutzer

  • Members
  • 129 Beiträge

Geschrieben: 18 June 2015 - 15:02

Hi guys,

 

Running a site performance test using http://www.webpagetest.org/ flags a number of issues regarding the delivery of images.  This raises the following questions:

 

  • Does SmartStore attempt to compress images before serving them (and if not, are there any plans to do this)?
  • Even though the original file name of each uploaded product image was SEO friendly, this is changed when it is served from the site (e.g. car-engine.jpg becomes 032174-car-engine-180.jpg).  This obviously creates a problem when trying to rank well in Google image search.  What is causing this, and can anything be done to fix it?
  • Is it possible to use a CDN to serve all category and product images (and therefore hopefully fix the compression issue listed above)? I only want to serve static content (e.g images and bundled CSS/JS) from the CDN.  Is this supported out of the box?  And if so, how?

 

Many thanks.

Nick



#2 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1118 Beiträge

Geschrieben: 18 June 2015 - 19:03

Does SmartStore attempt to compress images before serving them (and if not, are there any plans to do this)?

 

No, but static file compression is something that can be configured in IIS.

 

Even though the original file name of each uploaded product image was SEO friendly, this is changed when it is served from the site (e.g. car-engine.jpg becomes 032174-car-engine-180.jpg).  This obviously creates a problem when trying to rank well in Google image search.  What is causing this, and can anything be done to fix it?

 

The physical name of your media file has no effect on the actual resulting file name. It's a composition of entity id, SEO friendly entity name and image size. And no, you can't fix it.

 

Is it possible to use a CDN to serve all category and product images (and therefore hopefully fix the compression issue listed above)? I only want to serve static content (e.g images and bundled CSS/JS) from the CDN.  Is this supported out of the box?  And if so, how?

 

Yes, it is possible: Configuration > Stores > [Store] > Content Delivery Network URL.


Murat Cakir
SmartStore AG


#3 nickh

nickh

    Erfahrener Benutzer

  • Members
  • 129 Beiträge

Geschrieben: 18 June 2015 - 20:50

Hi Murat,

 

Thanks for the answers.

 

Do you have any documentation about how to configure the CDN settings?  Can it be configured to only use the CDN for images?



#4 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1118 Beiträge

Geschrieben: 18 June 2015 - 21:15

Just enter your CDN's URL, e.g. https://something.cloudfront.net. It only affects images, nothing else.


Murat Cakir
SmartStore AG


#5 nickh

nickh

    Erfahrener Benutzer

  • Members
  • 129 Beiträge

Geschrieben: 19 June 2015 - 13:49

I'm not sure I understand what you're saying, as Cloudflare (my desired CDN) doesn't appear to provide a specific CDN URL - it just requires a change to my name server settings and then I think it attempts to manage ALL content (which is configured in Cloudflare control panel).  I don't understand what the URL in store settings actually does...



#6 nickh

nickh

    Erfahrener Benutzer

  • Members
  • 129 Beiträge

Geschrieben: 20 June 2015 - 12:36

Please could you shed some light on this?  If CloudFlare (or any CDN provider) automatically handles all images for your domain, why do we need to specify a CDN url in store settings?



#7 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1118 Beiträge

Geschrieben: 20 June 2015 - 18:27

Because of the generated URLs for media files. Without this setting, the files would be served with your domain's name.


Murat Cakir
SmartStore AG