What feature does SPIF provide that srcset does not already? Moreover, srcset let you change only one version of your image without invalidating others in cache.
True.
But doesn't srcset require you to change it if you add new resolution/sizes, while SPIF would simply require to replace the image file?
srcset
Yes, it does but that's not an issue if your webpage size is smaller than your image size (which is often the case).
Ah okay, I saw it more from the perspective of code changes vs asset changes.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What feature does SPIF provide that srcset does not already? Moreover, srcset let you change only one version of your image without invalidating others in cache.
True.
But doesn't
srcset
require you to change it if you add new resolution/sizes, while SPIF would simply require to replace the image file?Yes, it does but that's not an issue if your webpage size is smaller than your image size (which is often the case).
Ah okay, I saw it more from the perspective of code changes vs asset changes.