nginx expires config
location ~* ^.+\.(js|css|php|jpg|jpeg|gif|png|pdf|zip|rar)$ { root /var/www/apps/myapp/public; access_log off; expires 7d; }
11379 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
location ~* ^.+\.(js|css|php|jpg|jpeg|gif|png|pdf|zip|rar)$ { root /var/www/apps/myapp/public; access_log off; expires 7d; }
#If DEBUG Then Private Shared _strConnectionString As String = My.Settings.Item("ConnStringDebug") #Else Private shared _strConnectionString As String = My.Settings.Item("ConnString") #End If // Web.Config/App.config file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="ConnStringDebug" value="Data Source=time01;Initial Catalog=CWBIOSVRdave;UID=sa; PWD=Clockwatch" /> <add key="ConnString" value="Data Source=time01;Initial Catalog=CWBIOSVRdave;UID=sa; PWD=Clockwatch"/> </appSettings> </configuration>