if ($request_uri ~* "\.(ico|css|js|gif|jpe?g|png)\?[0-9]+$") {
access_log off;
expires 31d;
break;
}
# Matching URLs
http://domain.com/stylesheets/blog.css?1221178271
if ($request_uri ~* "\.(ico|gif|png|jpe?g|css|js|swf)(\?v\d\d?)?$") {
access_log off;
expires 31d;
break;
}
# Matching URLs
http://domain.com/stylesheets/blog.css
http://domain.com/stylesheets/blog.css?v1
http://domain.com/stylesheets/blog.css?v12
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2021"></script>
location = /favicon.ico {
access_log off;
return 204;
# or empty_gif;
}
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2018"></script>
# MacOS is able to limit bandwith form specific protocol or source-ip on the fly. Creating an bandwidth limtation rule won't break your download
#Build a pipe with a limited bandwidth (example 1Mbits/s)
sudo ipfw pipe 1 config bw 1Mbit/s
#Assign a rule to redirect the protocol on that pipe (for example http from www.example.com)
sudo ipfw add 1 pipe 1 proto tcp src-port 80 src-ip www.example.com
#You can show your pipe like that
sudo ipfw pipe show
#Delete the created pipe with that both comands
# delete the redirection rule :
sudo ipfw del 1
# delete the pipe :
sudo ipfw pipe 1 delete
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1105"></script>