how to set up browser caching
-
Hi! I installed Hummingbird plugin on my site, and now I need to set up browser caching, because “4 of your cache types don’t meet the recommended expiry period of 1 year”. JS, CSS, Media, IMG are these types. Hummingbird automatically detected my server type as Nginx. Now I’m offered to copy generated code to some place, which I don’t know how to find. Here is the instruction:
1.Copy the generated code into your nginx.conf usually located at /etc/nginx/nginx.conf or /usr/local/nginx/conf/nginx.conf
2.Add the code above to the http or inside server section in the file.
3.Restart NGINX.
4.Re-check expiry status.
My questions are:
1. Do I need to paste this code twise, first time to nginx.conf, second time to the http or inside server section?
2. Could someone please explain in detail, where exactely I need to look for the place to paste the code? I am not a site developer, I really have no idea what to do, although I have some experience pasting code, but I had detailed instructions.The page I need help with: [log in to see the link]
- The topic ‘how to set up browser caching’ is closed to new replies.