Help Livewire & nginx cache
Hello forum folks,
I have an issue with Livewire and Nginx (more precisely with Nginx's cache). I recently created a form to allow users to upload and crop their profile picture. This form uses Livewire's temporary route to display the image and then crops it using Cropper.js.
The problem arises when I activate Nginx's cache; it doesn't display the temporary image (showing error 404). So, I disabled the cache for JPG and JPEG files (and now work) . However, now the issue is that when attempting to log in to the account (using a Livewire form), it makes a GET request but doesn't log in.
At the moment, I have all cache disabled for Nginx, but I would like to enable it. Here is my configuration:
# Remove index.php
if ($request_uri ~* "^(.*/)index\.php(.*)") {
return 301 ;
}
# Clean Double Slashes
if ($request_uri ~* "\/\/") {
rewrite ^/(.*) / permanent;
}
Please or to participate in this conversation.