This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js"></script> | |
<script> | |
/* | |
* get geographical location data by ip address | |
* uses the free ipify.org services | |
* and the paid Maxmind GeoIP2 Precision services | |
*/ | |
(function (geoip2) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This will clear the mod_pagespeed cache on a server that's had it installed via the cPanel script here: | |
# https://github.com/pagespeed/cpanel | |
# The location of the cache file may change, it can be found in the pagespeed.conf file located at /usr/local/apache/conf/ | |
# The cache location is set by ModPagespeedFileCachePath variable | |
touch /var/mod_pagespeed/cache/cache.flush |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^([a-z]+)/([^/]*)$ resize.php?size=$1&file=$2 |