Remove ? resize= from image url

Asked

Viewed 55 times

1

After some tests with gtmetrix I realized that images take a long time to load when they are resized from the url, with the method "?resize=(dimensions)" at the end of it.

Example: meudomininio.com/image.jpg (20ms)

meudomininio.com/imagem.jpg? resize=100,400 (500ms)

My question is how to disable this setting as the site performance drops.

Use wordpress. EWWW plugins and Cache Fastern enabled, . htacess configured

2 answers

2

The general rule is to remove all suspicious plugins (like the ones you mentioned) and see if the problem persists. If you solve, add one by one again until you find the "culprit".

Once you find the plugin that is causing the slowness, look for hints of it and try to find the configuration to not generate Thumbs dynamically. Many use the library "Timthumb".

If it doesn’t work, try to find some redirect configured in your . htaccess, it will look something like this:

RewriteRule ^images/([0-9]+)/([a-z0-9.]+)?$ /tt.php?src=/images/$2&w=$1

Solved

The "Jetpack" plugin was being used. It is responsible for putting this "? resize=(dimensions)" in the url when image optimization is enabled. Disabling this function solved the problem.

0

I use Wordpress. I found that the plugin "Jetpack" is responsible for putting this "? resize=(dimensions)" in the url when image optimizer is enabled.

Then I deactivated this plugin function and everything was solved.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.