Paginate by Last Modified Not Working on NGINX

During development I do:

rm -rf public/ resources/
hugo --cleanDestinationDir --minify
git push

And then on the server:

git pull
rm -rf public/ resources/
hugo --cleanDestinationDir --minify
hugo server --bind=0.0.0.0 --baseURL=http://0.0.0.0:1313

verify it from other devices on the network and then stop the Hugo server. Finally, a I do reload NGINX

sudo systemctl reload nginx

I dont think there’s any difference between how I build it on development and production server.