We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using this code to this to warm the cache:
location /:cache/warm { rewrite ^/:cache/warm(/.*)$ $1; root /home/web; slowfs_cache sites; slowfs_cache_key $1; slowfs_cache_valid 15d; break; }
Which works great, but it also returns the entire file. If I want to warm up a lot of large files, this will go much slower.
I tried adding return 200 "ok"; to the location block:
return 200 "ok";
location /:cache/warm { rewrite ^/:cache/warm(/.*)$ $1; root /home/web; slowfs_cache sites; slowfs_cache_key $1; slowfs_cache_valid 15d; return 200 "ok"; break; }
But when I do this, the file doesn't get cached.
Is there a sneaky way to cache the file without serving it?
The text was updated successfully, but these errors were encountered:
what about calling using the head method? For example curl -I http://localhost/... might help.
Sorry, something went wrong.
No branches or pull requests
I'm using this code to this to warm the cache:
Which works great, but it also returns the entire file. If I want to warm up a lot of large files, this will go much slower.
I tried adding
return 200 "ok";
to the location block:But when I do this, the file doesn't get cached.
Is there a sneaky way to cache the file without serving it?
The text was updated successfully, but these errors were encountered: