itpp2012 Wrote: ------------------------------------------------------- > Use curl to find out exactly what the timestamp is before/after > caching, it might be as simple as chrome not doing something it > should. Crafted up this to get the last modified timestamp function fetchHeader(url, wch) { try { var req=new XMLHttpRequest(); req.open("HEAD&by Dillybob - How to...
Under nginx obviously. Let's say I have a npcdata.txt file that is getting ajax requested every time a new game is created on my online game. It's nice to cache that file using nginx, but if I make changes to npcdata, a user will not get that new information from that .txt file UNLESS they do a HARD reload on chrome. Is there a way to have it so nginx automatically uncache the file if the fiby Dillybob - How to...
Yes! I finally found a fix after reviewing this awesome article: https://www.digitalocean.com/community/tutorials/understanding-nginx-server-and-location-block-selection-algorithms I added this below my location block: location = / { limit_req zone=limit burst=3 nodelay; } And it catches the 'localhost' url! Mods may close this!by Dillybob - How to...
I am using this location block with php location ~ \.php$ { try_files $uri =404; limit_req zone=limit burst=3 nodelay; fastcgi_pass php_farm; include nginx.fastcgi.conf; } If I go to localhost/testxxx.php and start F5 spamming, it will work. **BUT**, if I just go to localhost and start refreshing/f5, nothing happens and it doesn't activate the limit_req, anby Dillybob - How to...
![]() |
![]() |
![]() |
![]() |
|