Comment to 'SOLVED:Browser caching is not working properly with nginx or apache'
  • Understood, but my UNA is installed in the root folder. Something wrong with caching?

    I would suggest to check Nginx access and error logs to find the reason of the problem.

    💓0 😆0 😲0 😥0 😠0 0
    • Understood, but my UNA is installed in the root folder. Something wrong with caching?

      I would suggest to check Nginx access and error logs to find the reason of the problem.

      There was no error posted, just a 404 in the access log.

      If I just change

      try_files \$uri =404;

      to

      try_files $uri =404;

      It works fine after that.

      Is that ok?

      💓0 😆0 😲0 😥0 😠0 0
      • Understood, but my UNA is installed in the root folder. Something wrong with caching?

        I would suggest to check Nginx access and error logs to find the reason of the problem.

        There was no error posted, just a 404 in the access log.

        If I just change

        try_files \$uri =404;

        to

        try_files $uri =404;

        It works fine after that.

        Is that ok?

        I just realized that within this thread, you don't mention putting a "\" in front of "$uri".

        However, I copied over the code from here, initially, and it is there - that was what was causing the issue.

        https://una.io/page/view-discussion?id=760

        All solved now, thanks.

        💓0 😆0 😲0 😥0 😠0 0
        • I just realized that within this thread, you don't mention putting a "\" in front of "$uri".

          However, I copied over the code from here, initially, and it is there - that was what was causing the issue.

          https://una.io/page/view-discussion?id=760

          Thank you, I've corrected the code there.

          💓0 😆0 😲0 😥0 😠0 0

        UNA - Network Infrastructure for Communities

        Close