I see that the plugin has not been updated in a couple of years, is it still active? The plugin no longer works for me, and nothing shows with the debug URL string.
]]>Using srcset involves the creation of multiple resized images (such as WordPress thumbnails), then using media query to load image according to device.
Adaptive Images is theorized to read screen size of user, then serve image accordingly. So how does this plugin implement that?
Some background information:
So, if you are using breakpoints, why not
Plugin doesn’t work with CDN because plugin doesn’t change HTML to use breakpoint images. So, on first page load, CDN -> origin web server -> html (requests original image) -> cdn (stores original image) -> user. Then, user -> cdn -> user (always receives cdn-original-image).
Or alternatively, CDN receives an “adaptive image” once, then never changes it to avoid origin server.
So how does the plugin work and why not use srcset instead?
]]>Is it going to work with php 8?
]]>Looking for a solution to generate all the thumbnails on-the-fly (not only for mobile screens), and keep the uploads directory actually clean of thumbnails and only store the original images. At glance, this plugin doesn’t seem to work that way, but is it possible to support such use case, say, programmatically with a filter, for example? Thanks.
]]>Hello,
The site is running on Litespeed server with LS cache plugin. After activating and configuring the Adaptive Images for WordPress plugin, no images are created in the cache folder – so it doesn’t work. When I disable the LiteSpeed Cache plugin it works, images are created and everything is ok.
Can you help me what settings/exceptions I need to add to litespeed?
Thank you.
]]>Any idea, why it does not create the cache?
? PHP GD library is installed.
? Image cache directory has not been created.
But this is probably because the cache has not been accessed yet.
After accessing your website from a mobile device the directory should be automatically created.
…test.ixtract.de/wp/wp-content/cache => drwxr-xr-x
? Installation .htaccess file is setup OK.
…test.ixtract.de/wp/.htaccess => -rw-r–r–
]]>Hello, everyone,
This is a note from the developers of the Adaptive Images plugin on how to test if the plugin actually works. Indeed, the plugin functions very transparently and unobtrusively -and this is by design- but it might become hard sometimes to even detect that it is functioning in the first place!
So here are the definitive ways to do this:
1. The esiest way to test is with your browser’s device emulation mode (Responsive Design Mode) in it’ Developer Tools. You can check this out in this video https://www.youtube.com/watch?v=hCAC1XUUOvw/ as an example.
2. View an image straight from your browser and add a “?debug=true” parameter at the end of the url like this https://www.website.com/wp-content/uploads/2015/01/image.jpg?debug=true
. This should print useful debug information as a text and, if it does, it verifies that the Adaptive Images plugin is in charge of delivering your images. If you keep seeing your image, then the plugin is not working as expected and the cause is probably a failure to update the .htaccess file properly.
3. Test with a tool like Webpagetest https://www.webpagetest.org/. Make sure you set the “Emulate Mobile Browser” setting in the “Advanced Settings” > “Chrome” tab. This tool is using real devices and real browsers.
And of course, you may always send us a support request here in the forum. It will help if you have checked the list above before and if you can provide the “Debug” and “Diagnostics” info which is available from within the plugin settings page!
Cheers,
Takis
I am testing out your Adaptive Images plugin on a Litespeed server. I have all images disabled in the Litespeed configuration.
When I go to GTMetrix, I get an “F Grade” for Serve Scaled Images and Optimize Images.
Screenshot: https://share.shoutcloudstudios.com/geuy7b4v
When I look inside of my Adaptive Images cache folders, very few images actually have a resized version in place.
Help me understand what I am missing here and how to use your plugin to make WordPress serve scaled images.
Thank you!
]]>Hi again Takis. I’m not sure if this is related to the PHP 7.4.32 error I reported previously – so I opened a new thread. I installed Adaptive Images on a site several years ago and the plugin worked perfectly (as advertised) – until August 2022. I wasn’t aware that it had stopped caching images until checking it today. (The plugin was generating, optimizing & caching images up until August 2022.)
The reason I checked is because I’m trying to set up Adaptive images on another site (per my previous thread) and I managed to get the plugin to generate the cache directory BUT the plugin is not generating resized and optimized images; the cache is showing 0 images. I have now tested this on 3 separate sites and the plugin isn’t generating or optimizing images on any of them. Here’s an overview of what I’ve done:
– scrolled through each site on my mobile phone and in my desktop browser using the Developer Tools mobile emulator (setting the screen to super small width)
– tested on Plesk (x 2 site) and cPanel (x 1 site) hosting
– WordPress and plugin versions are the latest (most up to date)
– all platforms are running PHP v7.4.32
– all 3 platforms are running Apache (not NGINX)
– I have disabled all other plugins
– verified the .htaccess file was created and is accurate
– checked folder permissions
– saved & re-saved settings
– deactivated and reactivated the plugin (and uninstalled and did a fresh install too)
– turned on debugging in wp-config
– installed the Query Monitor plugin
– checked the PHP error logs on each server
– I’m not seeing ANY errors
I suspect I’m missing something really basic – but I’ve run out of ideas. Is the plugin working for you as expected running WP v6.0.2 & PHP v7.4.32?
…here is the redacted Print Debug Info (installed in a /wp2022/ test directory):
PHP GD library is installed.
? Image cache directory has been created.
/home/example/public_html/wp2022/wp-content/cache/adaptive-images => drwxr-xr-x
? Installation .htaccess file is setup OK.
/home/example/public_html/wp2022/.htaccess => -rw-r--r--
? Adaptive images settings dump:
array(14) {
["resolutions"]=>
array(4) {
[0]=>
int(1024)
[1]=>
int(768)
[2]=>
int(640)
[3]=>
int(480)
}
["landscape"]=>
bool(true)
["hidpi"]=>
bool(true)
["cache-directory"]=>
string(21) "cache/adaptive-images"
["watched-directories"]=>
array(2) {
[0]=>
string(18) "wp-content/uploads"
[1]=>
string(17) "wp-content/themes"
}
["jpeg-quality"]=>
int(60)
["sharpen-images"]=>
bool(true)
["watch-cache"]=>
bool(true)
["browser-cache"]=>
float(180)
["cdn-support"]=>
bool(false)
["version"]=>
string(6) "0.6.70"
["sanitized"]=>
bool(true)
["wp-content-dir"]=>
string(44) "/home/example/public_html/wp2022/wp-content"
["wp-content-url"]=>
string(48) "https://www.example.com/wp2022/wp-content"
}
Thanks for your time!
pk
Hey do I need the .htaccess rules for everything to work? If I do, can you tell me how to change them to NGINX rules?”
]]>Hello and thank you for sharing your excellent plugin! While doing some debugging I noticed a persistent PHP error in the server logs. This is an edited excerpt of the PHP error:
[proxy_fcgi:error] ... Got error 'PHP message: PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 10 in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/adaptive-images/adaptive-images-admin.php on line 937', referer: https://www.example.com/wp-admin/options-general.php?page=adaptive-images&action=print-debug-info&_wpnonce=48eeb00088
I am running the latest version of WordPress (v6.0.2) & the Adaptive Images plugin (v0.6.70) – PHP v7.4.32 w Apache.
I think the error is due to more strict PHP requirements in PHP 7.4 for processing regular expressions; in this case some hyphens need to be escaped. I replaced this:
$cache_directory = preg_replace( '/[^a-zA-Z\d-_\/]+/i', '', $cache_directory );
With this:
$cache_directory = preg_replace( '/[^a-zA-Z\d\-_\/]+/i', '', $cache_directory );
…and the errors stopped.
Hopefully this can be addressed in the next plugin release.
Cheers,
pk
This excellent plugin has worked fine until recently. However, the mobile images are no longer being served and full size images are being used. The adaptive-images directory exists (I can see it on the server) but stopped adding new images in April. The DEBUG says the image cache directory has not been created. When I put the path to the directory manually into settings and save it goes blank and does not show the path.
Advice needed, Many thanks.
DEBUG INFO
? PHP GD library is installed.
? Image cache directory has not been created.
But this is probably because the cache has not been accessed yet.
After accessing your website from a mobile device the directory should be automatically created.
. => drwxr-xr-x
? Installation .htaccess file is setup OK.
/home/navylook/public_html/.htaccess => -rw-r--r--
? Adaptive images settings dump:
array(14) {
["resolutions"]=>
array(3) {
[0]=>
int(1024)
[1]=>
int(640)
[2]=>
int(480)
}
["landscape"]=>
bool(true)
["cache-directory"]=>
string(0) ""
["watched-directories"]=>
array(2) {
[0]=>
string(18) "wp-content/uploads"
[1]=>
string(17) "wp-content/themes"
}
["jpeg-quality"]=>
int(45)
["sharpen-images"]=>
bool(true)
["watch-cache"]=>
bool(true)
["browser-cache"]=>
float(7)
["hidpi"]=>
bool(false)
["cdn-support"]=>
bool(false)
["version"]=>
string(6) "0.6.70"
["sanitized"]=>
bool(true)
["wp-content-dir"]=>
string(37) "/home/navylook/public_html/wp-content"
["wp-content-url"]=>
string(38) "https://www.navylookout.com/wp-content"
}
]]>
Hi
The plugin has worked fine but suddenly some images was not shown and you got this error message, then you go to the url of the image “Original image not found or not available”. It might because of the update of WordPress to 5.9 or the latest version or of the plugin 0.6.70. There the image is shown again then you deactivate the plugin. That we now have done.
We don’t have so much time error checking the problem and for us it can be easier to not use the plugin. While I though it was good to report the problem because maybe other have the same problem.
That the error was both with jpg and png images. Examples of the images that wasn’t showed then the plugin was activated.
https://folkdansringen.se/riks/wp-content/uploads/2019/12/genomskinliglogga.png
While for example all the iamges on the home page besides the logo was shown.
]]>I installed this plugin because I was having issues with my website’s header on mobile. It looks fine if the phone is held horizontally, but the image is cut off when the phone is held vertically. After installing the plugin, activating it, and choosing the ‘bigger dimension’ setting, nothing has changed on mobile. Did I skip a step?
]]>Hello,
I am using the plugin and was testing if everything is working.
I saw that the folder has been made succesfuly and I dont get the error that file permissions are wrong.
I visited some pages of my website, but the cache folder of the adaptive images keeps clear. Is there maybe something going wrong? How can I check if it’s working? I think it’s not working because of the empty cache foler.
Kind regards,
Mike
hi
im trying to figure out how to lazy load generated imaged by the plugin, but i cant seem to find the setting to lazy loading image…i know i can add an additional plugin, but im trying to limit installed plugin in my wordpress instalation
can i lazy load with this plugin?
thanks
]]>The first page of my website does not appear correctly on small screens. The other pages are acceptable but could be better. Can you please take a look?
? PHP GD library is installed.
? Image cache directory has been created.
/home3/rdmanage/northbeachrentalresponse.com/wp-content/cache/adaptive-images => drwxr-xr-x
? Installation .htaccess file is setup OK.
/home3/rdmanage/northbeachrentalresponse.com/.htaccess => -rw-r--r--
? Adaptive images settings dump:
array(14) {
["resolutions"]=>
array(3) {
[0]=>
int(1024)
[1]=>
int(640)
[2]=>
int(480)
}
["landscape"]=>
bool(true)
["cdn-support"]=>
bool(true)
["cache-directory"]=>
string(21) "cache/adaptive-images"
["watched-directories"]=>
array(2) {
[0]=>
string(18) "wp-content/uploads"
[1]=>
string(17) "wp-content/themes"
}
["jpeg-quality"]=>
int(70)
["sharpen-images"]=>
bool(true)
["watch-cache"]=>
bool(true)
["browser-cache"]=>
float(180)
["hidpi"]=>
bool(false)
["version"]=>
string(6) "0.6.68"
["sanitized"]=>
bool(true)
["wp-content-dir"]=>
string(55) "/home3/rdmanage/northbeachrentalresponse.com/wp-content"
["wp-content-url"]=>
string(47) "https://northbeachrentalresponse.com/wp-content"
}
Web Server
Apache
Document Root
/home3/rdmanage/northbeachrentalresponse.com
PHP
7.3.29
PHP Time Limit
30
PHP Memory Limit
256M
PHP Post Max Size
516M
PHP Upload Max Size
512M
PHP Max Input Vars
1000
PHP Display Errors
No
PHP Error Log
error_log
MySQL
5.6.41-84.1
MySQL Ext/mysqli
Yes
MySQL Table Prefix
wpvl_
MySQL DB Charset
utf8
WP
5.7.2
WP Multisite
No
WP Debug Mode
No
WP Site url
https://northbeachrentalresponse.com
WP WP Home url
https://northbeachrentalresponse.com
WP Permalinks
/%year%/%monthnum%/%day%/%postname%/
WP home path
/home3/rdmanage/northbeachrentalresponse.com/
WP content dir
/home3/rdmanage/northbeachrentalresponse.com/wp-content
WP plugin dir
/home3/rdmanage/northbeachrentalresponse.com/wp-content/plugins
WP content url
https://northbeachrentalresponse.com/wp-content
WP plugin url
https://northbeachrentalresponse.com/wp-content/plugins
WP Locale
en_US
WP Memory Limit
40M
WP Max Upload Size
512mb
WP Active plugins
FooGallery v.2.0.39 by FooPlugins
Adaptive Images for WordPress v.0.6.68 by Nevma
FooBox Image Lightbox v.2.7.16 by FooPlugins
Instant Images v.4.4.0.2 by Darren Cooney
Jetpack v.9.9 by Automattic
Meta Box v.5.4.6 by MetaBox.io
MOJO Marketplace v.1.5.8 by Mike Hansen
OptinMonster v.2.4.1 by OptinMonster Team
Pages with category and tag v.0.9.0 by YAHMAN
Post and Page Builder v.1.14.0 by BoldGrid
Simple Google AdSense v.1.0.5 by Mantrabrain
UpdraftPlus - Backup/Restore v.1.16.59 by UpdraftPlus.Com, DavidAnderson
WP Mail SMTP v.2.9.0 by WPForms
WPForms Lite v.1.6.8 by WPForms
WP MU plugins
Endurance Page Cache v.2.0.7 by Mike Hansen
]]>
Hi – do you plan to integrate the nextGen image formats like webP?
That would be great, for i like your plugin a lot.
regards
theo
I have tried many codes that I found in the support forums, but none of them worked. I have icons in an image box that do not resize for mobile. They appear very large and I need to scale them down on mobile.
]]>Our host, SiteGround, does not allow users to edit the NGINX config file (root-access only).
I already contacted their support team, they suggested asking for the code to add to the htaccess file. Could you please send the respective code or any other solution?
Hello,
I host a site at kinsta.com. They use Nginx.
They have added needed code.
I also use cloudflare for several reasons.
After add the nginx code, I satrted see the folder in cache folder but no image in there.
When I check from mobile, I see that original image is served.
What can I do?
? PHP GD library is installed.
? Image cache directory has been created.
/www/xxxx/public/wp-content/cache/adaptive-images => drwxr-xr-x
? Installation .htaccess file is setup OK.
/www/xxxx/public/.htaccess => -rw-r--r--
? Adaptive images settings dump:
array(14) {
["resolutions"]=>
array(3) {
[0]=>
int(1024)
[1]=>
int(768)
[2]=>
int(480)
}
["landscape"]=>
bool(true)
["hidpi"]=>
bool(true)
["cdn-support"]=>
bool(true)
["cache-directory"]=>
string(21) "cache/adaptive-images"
["watched-directories"]=>
array(2) {
[0]=>
string(18) "wp-content/uploads"
[1]=>
string(17) "wp-content/themes"
}
["jpeg-quality"]=>
int(90)
["sharpen-images"]=>
bool(true)
["watch-cache"]=>
bool(true)
["browser-cache"]=>
float(180)
["version"]=>
string(6) "0.6.68"
["sanitized"]=>
bool(true)
["wp-content-dir"]=>
string(38) "/www/xxxx/public/wp-content"
["wp-content-url"]=>
string(35) "https://gp.xxxx.gen.tr/wp-content"
}
System information
Web Server
nginx/1.19.1
Document Root
PHP
7.4.14
PHP Time Limit
300
PHP Memory Limit
256M
PHP Post Max Size
128M
PHP Upload Max Size
128M
PHP Max Input Vars
10000
PHP Display Errors
No
PHP Error Log
MySQL
5.5.5-10.3.22-MariaDB-1ubuntu1-log
MySQL Ext/mysqli
Yes
MySQL Table Prefix
wp_
MySQL DB Charset
utf8mb4
WP
5.6.1
WP Multisite
No
WP Debug Mode
No
]]>
Hi folks,
Currently, Adaptive Images has the following RewriteRule:
RewriteRule \.(?:jpe?g|gif|png)$ /wp-content/plugins/adaptive-images/adaptive-images-script.php [L]
Unfortunately, what this means is that the request is basically sent back to mod_rewrite for further processing, now with the new path (which ends in .php). If you have further rules, these are now processed, and a number of hardening tools don’t allow processing of .php files directly, unless they’re from a known list of files under wp-admin.
To fix this on our site, we’ve changed [L] to [END], as detailed in https://httpd.apache.org/docs/current/rewrite/flags.html#flag_l. An alternative could be using [P], but this would require mod_proxy to be installed.
So, the issue is now what will happen when we come to upgrade Adaptive Images. The use of [L] is hard coded in adaptive-images-actions.php, line 185. Additionally, there’s no checking on upgrade if the htaccess has been modified – it simply replaces the whole config between the mark lines with the new one.
Perhaps the flag being used could be added as a config option, or the upgrade processing could be a bit more clever about parsing the .htaccess to look for changes.
]]>Hello, unfortunately, plugin not working for some reason, here is the diagnostics and debug info:
? PHP GD library is installed.
? Image cache directory has not been created.
But this is probably because the cache has not been accessed yet.
After accessing your website from a mobile device the directory should be automatically created.
/home/479940.cloudwaysapps.com/fvkxmbcepm/public_html/wp-content/cache => drwxrwxr-x
? Installation .htaccess file is setup OK.
/home/479940.cloudwaysapps.com/fvkxmbcepm/public_html/.htaccess => -rw-rw-r--
? Adaptive images settings dump:
array(14) {
["resolutions"]=>
array(6) {
[0]=>
int(1440)
[1]=>
int(1280)
[2]=>
int(1024)
[3]=>
int(640)
[4]=>
int(480)
[5]=>
int(375)
}
["landscape"]=>
bool(true)
["cache-directory"]=>
string(21) "cache/adaptive-images"
["watched-directories"]=>
array(2) {
[0]=>
string(18) "wp-content/uploads"
[1]=>
string(17) "wp-content/themes"
}
["jpeg-quality"]=>
int(75)
["sharpen-images"]=>
bool(true)
["watch-cache"]=>
bool(true)
["browser-cache"]=>
float(180)
["hidpi"]=>
bool(false)
["cdn-support"]=>
bool(false)
["version"]=>
string(6) "0.6.68"
["sanitized"]=>
bool(true)
["wp-content-dir"]=>
string(64) "/home/479940.cloudwaysapps.com/fvkxmbcepm/public_html/wp-content"
["wp-content-url"]=>
string(44) "https://dev-kaza-mike.d1.rgbc.dev/wp-content"
}
Web Server
Apache/2.4.25 (Debian)
Document Root
/home/479940.cloudwaysapps.com/fvkxmbcepm/public_html/
PHP
7.3.23-1+0~20201008.68+debian9~1.gbp30f6c3
PHP Time Limit
60
PHP Memory Limit
256M
PHP Post Max Size
10M
PHP Upload Max Size
10M
PHP Max Input Vars
2500
PHP Display Errors
No
PHP Error Log
MySQL
5.5.5-10.1.46-MariaDB-1~stretch
MySQL Ext/mysqli
Yes
MySQL Table Prefix
wp_
MySQL DB Charset
utf8
WP
5.5.1
WP Multisite
No
WP Debug Mode
No
WP Site url
https://dev-kaza-mike.d1.rgbc.dev
WP WP Home url
https://dev-kaza-mike.d1.rgbc.dev
WP Permalinks
/%postname%/
WP home path
/home/479940.cloudwaysapps.com/fvkxmbcepm/public_html/
WP content dir
/home/479940.cloudwaysapps.com/fvkxmbcepm/public_html/wp-content
WP plugin dir
/home/479940.cloudwaysapps.com/fvkxmbcepm/public_html/wp-content/plugins
WP content url
https://dev-kaza-mike.d1.rgbc.dev/wp-content
WP plugin url
https://dev-kaza-mike.d1.rgbc.dev/wp-content/plugins
WP Locale
en_US
WP Memory Limit
40M
WP Max Upload Size
10mb
# BEGIN Adaptive Images
#=======================
<IfModule mod_rewrite.c>
RewriteEngine On
# Watched directories
RewriteCond %{REQUEST_URI} /wp-content/uploads [OR]
RewriteCond %{REQUEST_URI} /wp-content/themes
# Redirect images through the adaptive images script
RewriteRule \.(?:jpe?g|gif|png)$ /wp-content/plugins/adaptive-images/adaptive-images-script.php [L]
</IfModule>
# END Adaptive Images
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# MalCare WAF
<Files ".user.ini">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
# END MalCare WAF
The password for visiting the page: h123456H
]]>hi there,
any update on webp?
]]>Hi there!
Will this plugin do the job, if I’m on a Litespeed server, using LSCache, Cloudflare CDN and WP Cloudflare Super Page Cache plugin?
Thank you.
]]>Hi, I’m having issues with Adaptive Images Settings on WordPress and hoping someone could help out. See below Debug Info for Adaptive Images.
? PHP GD library is installed.
? Image cache directory has not been created.
It seems that the directory is not writeable. This is probably a filesystem permissions issue.
Consider adding manually the image cache directory: “/wp-content/cache/adaptive-images”.
/var/www/wp-content/cache =>
? Installation .htaccess file is not properly setup.
The .htaccess file is not writeable so it might have not been updated.
/.htaccess =>
? Adaptive images settings dump:
array(14) {
[“resolutions”]=>
array(3) {
[0]=>
int(1024)
[1]=>
int(640)
[2]=>
int(480)
}
[“landscape”]=>
bool(true)
[“cache-directory”]=>
string(21) “cache/adaptive-images”
[“watched-directories”]=>
array(2) {
[0]=>
string(18) “wp-content/uploads”
[1]=>
string(17) “wp-content/themes”
}
[“jpeg-quality”]=>
int(75)
[“sharpen-images”]=>
bool(true)
[“watch-cache”]=>
bool(true)
[“browser-cache”]=>
float(180)
[“hidpi”]=>
bool(false)
[“cdn-support”]=>
bool(false)
[“version”]=>
string(6) “0.6.68”
[“sanitized”]=>
bool(true)
[“wp-content-dir”]=>
string(19) “/var/www/wp-content”
[“wp-content-url”]=>
string(41) “https://drdisabilityquotes.com/wp-content”
}
If I want to uninstall the plugin all my images are showing broken. If I install it again, it is fine, even without actually activating it.
We added this to the nginx:
try_files $uri $uri/ /{FOLDER}index.php$is_args$args;
rewrite \.(?:jpe?g|gif|png)$ /wp-content/plugins/adaptive-images/adaptive-images-script.php;
It is also working for us, but I want to have the option to uninstall it without breaking something.
Can you help me? What is the best practice?
Thanks!
]]>Hi there! I have a CDN/NGINX config, and the plugin won’t work. I’ve removed the plugin and removed code from wp-config, but the adaptive-images-script.php
is still functioning. How do I get rid of it? Thanks.
Hi there, today I was looking for a plugin which can do the job and I selected your plugin as it was ranking 1 on Google.
I installed it and clicked a few buttons according to my needs in the settings and then saved it. and then cleared the cache from Cloudflare and cleared the cache from the LSCache too. And then visited a few pages which have a lot of images.
Then clicked on the calculate button, it refreshed the page and said 0 cache image size.
Then I checked the file manager and visited the cache/adaptive image folder and it was also empty.
There was no error showing to me otherwise I could have sent you the error screenshot.
What could be the issue? My client has nearly 3000 images on his real estate website. Here is the link of his site which you can check https://gtacondostore.com/ we need to optimize the images. I have put my full knowledge to optimize the images and to increase the speed of the website. We even purchased a 30GB RAM server too just for this one website.
Can you please help me to find out why the plugin did not cache any image?
I use Cloudflare + Redis + Open Litespeed server with LSCache plugin.
Screenshots of my settings = https://prnt.sc/tbx5bn
Hello, I already have the following entry in ngnix:
location ~* \.(css|js|ico|gif|jpeg|jpg|webp|png|svg|eot|otf|woff|woff2|ttf|ogg)$ {
expires max;
}
How should I apply then the setting suggested?
location / {
rewrite \.(?:jpe?g|gif|png)$ /wp-content/plugins/adaptive-images/adaptive-images-script.php;
}
BTW, my configuration is what’s called Nginx configured as a reverse proxy in front of Apache. Do I still need to do the setting above, or can I also put it (properly formatted of course) on .htaccess
instead?
Thanks!
]]>