Mastering NGINX by Unknown
Author:Unknown
Language: eng
Format: epub
Publisher: Packt Publishing
Knowing what you do about the files your application generates, you can set these headers appropriately. Let's take an example application where the main page should be cached for 5 minutes, all JavaScript and CSS files for 24 hours, each HTML page for 3 days, and each image for as long as possible:
server { root /home/www; location / { # match the index.html page explicitly so the *.html below # won't match the main page location = /index.html { expires 5m; } # match any file ending in .js or .css (Javascript or CSS files) location ~* /.*\.(js|css)$ { expires 24h; } # match any page ending in .html location ~* /.*\.html$ { expires 3d; } } # all of our images are under a separate location (/img) location /img { expires max; } }
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Linux Device Driver Development Cookbook by Rodolfo Giometti(3910)
Embedded Programming with Modern C++ Cookbook by Igor Viarheichyk(3431)
Implementing Cellular IoT Solutions for Digital Transformation by Dennis McCain(3384)
Embedded Linux Development Using Yocto Project - Third Edition by Otavio Salvador & Daiane Angolini(3221)
TinyML Cookbook by Gian Marco Iodice(3165)
Simplifying 3D Printing with OpenSCAD by Colin Dow(2831)
TinyML Cookbook by Gian Marco Iodice & Ronan Naughton(2591)
Fusion 360 for Makers by Lydia Sloan Cline(2210)
Networking A Beginner's Guide by Bruce Hallberg(2198)
Hands-On Linux for Architects by Denis Salamanca(2034)
But How Do It Know? by J. Clark Scott(2019)
Computers For Seniors For Dummies by Nancy C. Muir(1988)
Raspberry Pi and MQTT Essentials by Dhairya Parikh(1940)
Arduino Project Handbook, Volume 2: 25 Simple Electronics Projects for Beginners by Geddes Mark(1937)
9781803246888-ENHANCING DEEP LEARNING WITH BAYESIAN INFERENCE by Unknown(1889)
Hack and HHVM by Owen Yamauchi(1874)
31 Days Before Your CompTIA A+ Exams (Shanette Luellen's Library) by Benjamin Patrick Conry(1850)
MicroPython Projects by Jacob Beningo(1715)
Hands-On Internet of Things with MQTT by Tim Pulver(1691)
