Optimized nginx conf, more secure and fixed persistent cache