# Very simple question about cache

**URL:** <https://www.ruby-forum.com/t/very-simple-question-about-cache/244905>\
**Category:** NGINX\
**Created:** [July 5, 2016, 9:23pm UTC](https://www.ruby-forum.com/t/very-simple-question-about-cache/244905 "2016-07-05T21:23:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [July 5, 2016, 9:23pm UTC](https://www.ruby-forum.com/t/very-simple-question-about-cache/244905/1 "2016-07-05T21:23:31Z")

</div>

Hi,I set simply reverse proxy (backend is an Apache web server):  
upstream backend { ip\_hash; server 127.0.0.1:8080; }

server { listen x.y.w.z:80; # IP goes here. server\_name  
[somedomain.com](http://somedomain.com); expires off; location / {  
proxy\_pass [http://backend](http://backend); } real\_ip\_header  
X-Forwarded-For;  
# Set proxy headers for the passthrough proxy\_set\_header  
Host $host; proxy\_set\_header X-Real-IP $remote\_addr;  
proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;  
access\_log /var/log/nginx/domain.cache.log cache; access\_log  
/var/log/nginx/domain.access.log;}

While browsing website, I see lots on entry in  
/var/log/nginx/domain.cache.log file (of course in  
/var/log/nginx/domain.access.log too).My question is: with this  
configuration, is there any caching active?

Example of cache log:  
\*\*\*05/Jul/2016:21:15:59 +0200 - Cache-Control: - Expires: -  
[some.domain.net](http://some.domain.net) “GET  
/wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,common,admin-bar,wp-ajax-response,jquery-color,wp-lists,quicktags,jquery-query,admin-comments,jquery-ui-core,jquery-&load%5B%5D=ui-widget,jquery-ui-mouse,jquery-ui-sortable,postbox,dashboard,underscore,customize-base,customize-loader,thickbox,plugin-instal&load%5B%5D=l,shortcode,media-upload,svg-painter,heartbeat,wp-auth-check,wp-a11y,wplink,jquery-ui-position,jquery-ui-menu,jquery-ui-autocomp&load%5B%5D=lete&ver=4.5.3  
HTTP/1.1” (304) “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0)  
Gecko/20100101 Firefox/47.0” Args:  
c=0&load%5B%5D=hoverIntent,common,admin-bar,wp-ajax-response,jquery-color,wp-lists,quicktags,jquery-query,admin-comments,jquery-ui-core,jquery-&load%5B%5D=ui-widget,jquery-ui-mouse,jquery-ui-sortable,postbox,dashboard,underscore,customize-base,customize-loader,thickbox,plugin-instal&load%5B%5D=l,shortcode,media-upload,svg-painter,heartbeat,wp-auth-check,wp-a11y,wplink,jquery-ui-position,jquery-ui-menu,jquery-ui-autocomp&load%5B%5D=lete&ver=4.5.3  
Wordpress Auth Cookie: \*\*\*05/Jul/2016:21:16:59 +0200 - Cache-Control:  
no-cache, must-revalidate, max-age=0 Expires: Wed, 11 Jan 1984 05:00:00  
GMT [some.domain.net](http://some.domain.net) “POST /wp-admin/admin-ajax.php HTTP/1.1” (200)  
“Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101  
Firefox/47.0” Args: - Wordpress Auth Cookie: \*\*\*05/Jul/2016:21:18:59  
+0200 - Cache-Control: no-cache, must-revalidate, max-age=0 Expires:  
Wed, 11 Jan 1984 05:00:00 GMT [some.domain.net](http://some.domain.net) “POST  
/wp-admin/admin-ajax.php HTTP/1.1” (200) “Mozilla/5.0 (Windows NT 10.0;  
WOW64; rv:47.0) Gecko/20100101 Firefox/47.0” Args: - Wordpress Auth  
Cookie:
