• xshuttyx

    (@xshuttyx)


    Hi, Great plugin, just hoping to get it working.

    GTMetrix and other tools show no difference and that the original images are still being served.

    https://www.instantplumbing.ca/wp-content/uploads/2018/08/homeheader.jpg?debug=true works and looks like this is active

    I believe the server is NginX

    Do I need to follow these instructions?

    ===========

    If you are using it as your main server then you need to add a special location directive in your server directive of your NginX configuration file. When you save the adaptive Images settings you will see a message that explains this in the top of your admin page. However, the code that you will see there might need a “little bit” of adaptation to work with your particular NginX installation.

    This is NginX-specific. Apache can be configured automatically by manipulating the .htaccess file, but NginX cofiguration files must be edited by hand.

    =============

    Thanks in advance

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

Viewing 1 replies (of 1 total)
  • Plugin Author Takis Bouyouris

    (@nevma)

    Hello, my friend,

    Indeed for NginX one must make that special addition to their sever configuration file, because NginX conf files cannot be automatically edited like Apache’s .htaccess files. However, it seems that you probably already have done that!

    The simplest way to check if the plugin is basically working is to hit an image url like this https://www.instantplumbing.ca/wp-content/uploads/2018/08/homeheader.jpg?debug=true or like this https://www.instantplumbing.ca/wp-content/uploads/2018/08/homeheader.jpg?resolution=360,1. The first url provides debug info about the request and the second ones mimics requests from specific device sizes and pixel densities.

    So, as you can see, in your case both url are working as expected, although I did need to do some cache clearing first and request the image uncached in order to get the required result.

    But that is not the end of it!

    When I hit the actual image https://www.instantplumbing.ca/wp-content/uploads/2018/08/homeheader.jpg from a small screen size (you can even do it in your browser’s developer tools in responsive design mode) I keep getting the original image and not a resized one. The little detail that seems to be missing here is that your setup probably doesn’t allow cookies to be sent along with image requests. Could you check if this is your case and please enable this?

    Because, yes, we do use a cookie in order for the server to know the device screen size and pixel density (https://prntscr.com/ln2i6i/).

    Let me know how it goes!

    Cheers,
    Takis

Viewing 1 replies (of 1 total)
  • The topic ‘Issue – Doesn’t appear to be working’ is closed to new replies.