Skip to content

Instantly share code, notes, and snippets.

@pcdinh
Created March 16, 2010 04:40
Show Gist options
  • Select an option

  • Save pcdinh/333652 to your computer and use it in GitHub Desktop.

Select an option

Save pcdinh/333652 to your computer and use it in GitHub Desktop.
if ($request_uri = /templates/wlc/css/css.gzip.php) {
set $css_gzip 1;
expires 2d;
}
if ($request_uri = /templates/wlc/lib/js/js.php) {
set $js_php 1;
expires 2d;
}
if ($request_uri = /modules/mod_yoo_carousel/mod_yoo_carousel.js.php) {
set $js_mod_yoo_carousel 1;
expires 2d;
}
if ($request_uri = /modules/mod_prize/prizerotator.js.php) {
set $js_prizerotator 1;
expires 2d;
}
if ($request_uri = /modules/mod_yoo_carousel/mod_yoo_carousel.css.php) {
set $css_mod_yoo_carousel 1;
expires 2d;
}
if ($request_uri = /templates/wlc/css/xpvideos.php) {
set $css_wlc_css_xpvideos 1;
expires 2d;
}
if ($request_uri = /components/com_jomcomment/style.css.php) {
set $css_com_jomcomment 1;
expires 2d;
}
if ($request_uri = /components/com_jomcomment/templates/default/comment_style.css.php) {
set $css_com_jomcomment_default_comment 1;
expires 2d;
}
# Read cached file
if ($css_gzip = 1) {
rewrite ^(.*)$ /nginxcache/css.gzip.php.css last;
break;
}
if ($js_php = 1) {
rewrite ^(.*)$ /nginxcache/wlc.js last;
break;
}
if ($js_mod_yoo_carousel = 1) {
rewrite ^(.*)$ /nginxcache/mod_yoo_carousel.js.php.js last;
break;
}
if ($css_mod_yoo_carousel = 1) {
rewrite ^(.*)$ /nginxcache/mod_yoo_carousel.css.php.css last;
break;
}
if ($js_prizerotator = 1) {
rewrite ^(.*)$ /nginxcache/prizerotator.js.php.js last;
break;
}
if ($css_wlc_css_xpvideos = 1) {
rewrite ^(.*)$ /nginxcache/wlc_css_xpvideos.css last;
break;
}
if ($css_com_jomcomment = 1) {
rewrite ^(.*)$ /nginxcache/com_jomcomment_style.css last;
break;
}
if ($css_com_jomcomment_default_comment = 1) {
rewrite ^(.*)$ /nginxcache/com_jomcomment_default_comment.css last;
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment