Support » Fixing WordPress » Serve resources from a consistent URL

  • I Have a food site vezlay it shows two url for same image please helps me to solve this issue it contain with my almost all the pages please help me as soon as possible.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Shashwat Mittal

    (@shashwatmittal)

    Please provide any two urls pointing to the same image?

    catacaustic

    (@catacaustic)

    very awesome

    Do you mean like this?

    <img src="https://i0.wp.com/vezlay.com/wp-content/uploads/2018/08/file-page1-1-1.jpg?fit=400%2C552" data-src="" class="attachment-full lazyDone" alt="Vegetarian Shawarma" srcset="https://i0.wp.com/vezlay.com/wp-content/uploads/2018/08/file-page1-1-1.jpg?w=400 400w, https://i0.wp.com/vezlay.com/wp-content/uploads/2018/08/file-page1-1-1.jpg?resize=217%2C300 217w" sizes="(max-width: 400px) 100vw, 400px" width="400" height="552">

    If so, that’s standard, and how you shoudl be doing it. What it’s doing is setting up multiple image sizes so that browsers can choose which one is the most suitable to display for their particlar settings and resolution.

    If that’s not it, then give us an example of what you mean so we can see.

    This is

    Shashwat Mittal

    (@shashwatmittal)

    @vezlay Both the URL’s are not different, they are same only, the part after the ? are known as query parameters, and does not affect the URL in anyway, you can put anything after that, here w=400 mostly will be there to compare the width at some place.

    Are you facing any errors or notices because of this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.