Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Web Site Creation Script and Caching Static Pages Issue

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  32 bit os on 63 bit os  
Author Message
heintz.larry

External


Since: Sep 11, 2006
Posts: 2



(Msg. 1) Posted: Mon Sep 11, 2006 3:02 pm
Post subject: Web Site Creation Script and Caching Static Pages Issue
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hello All,

I have a web site creation script that I wrote for IIS 5.0 and am
using a tweaked version it in IIS 6.0. The web site is created and
works fine except for static pages are being cached. If I do a IISRESET
the caching issue is gone until I make a change to the static page
again. The weird things is that when a site is created manually in IIS
6.0 the caching issue does not happen. I have been able to reproduce
this issue on 2 different 2003 Server Web Edition and 2003 Enterprise
Edition. Anyone have a idea's?

 >> Stay informed about: Web Site Creation Script and Caching Static Pages Issue 
Back to top
Login to vote
Steven Burn

External


Since: Feb 07, 2005
Posts: 106



(Msg. 2) Posted: Tue Sep 12, 2006 9:31 am
Post subject: Re: Web Site Creation Script and Caching Static Pages Issue [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Do you have the no-cache meta tag included?, and of course, caching in IIS
turned off?

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

<heintz.larry.RemoveThis@gmail.com> wrote in message
news:1158012156.695036.89240@e3g2000cwe.googlegroups.com...
> Hello All,
>
> I have a web site creation script that I wrote for IIS 5.0 and am
> using a tweaked version it in IIS 6.0. The web site is created and
> works fine except for static pages are being cached. If I do a IISRESET
> the caching issue is gone until I make a change to the static page
> again. The weird things is that when a site is created manually in IIS
> 6.0 the caching issue does not happen. I have been able to reproduce
> this issue on 2 different 2003 Server Web Edition and 2003 Enterprise
> Edition. Anyone have a idea's?
>

 >> Stay informed about: Web Site Creation Script and Caching Static Pages Issue 
Back to top
Login to vote
heintz.larry

External


Since: Sep 11, 2006
Posts: 2



(Msg. 3) Posted: Wed Sep 13, 2006 10:44 am
Post subject: Re: Web Site Creation Script and Caching Static Pages Issue [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Steven,

Yes, I have tried the no-cache meta tag in the html file, no good.
I have also tried the no-cache custom header in IIS but still no good.
I tried the following reg edit, UriEnableCache from a MS KB,
http://support.microsoft.com/?id=820129 . The only IIS Caching that I
am aware of in IIS 6.0 is for ASP and I turned that option off as well
and still no good. I have rebooted after each fix I tried as well. I
have even gone as far as looking and comparing the metabase info for
the sites and the differences I copied into the scripted site settings,
did a iisreset and still no go. Below is the bulk of the code that is
used to create the site. Remember this issue is only with users created
by the script.

Function createSite
'// Creates web site
Dim ServerComment,RootDirectory,IpAddress,PortNum,HostName
Dim BindingString
Dim aryBindings(1)
ServerComment = domain
RootDirectory = websitesdir & domain & "\"
IpAddress = "172.16.4.35"
PortNum = "80"
HostName = domain
aryBindings(0)= IpAddress & ":" & PortNum & ":" & HostName
aryBindings(1)= IpAddress & ":" & PortNum & ":www." & HostName
'SiteNumber = 500

Set w3svc = GetObject("IIS://" & computer & "/w3svc")
Set NewWebServer = w3svc.Create("IIsWebServer", NewSiteNumber)
NewWebServer.ServerBindings = aryBindings
NewWebServer.ServerComment = ServerComment
NewWebServer.AnonymousUsername = createUser()
NewWebServer.AnonymousUserpass = pass
NewWebServer.LogFileDirectory = weblogsdir + domain
NewWebServer.SetInfo
Set NewDir = NewWebServer.Create("IIsWebVirtualDir", "ROOT")
NewDir.Path = RootDirectory
NewDir.AccessRead = True
'NewDir.AccessExecute = True '
NewDir.AppCreate (True)
NewDir.AppFriendlyName = domain
NewDir.AppRoot = Replace(NewDir.ADsPath,"IIS://" & computer,"/LM")
NewDir.AppPoolId = "basicapppool1"
NewDir.AppIsolated = "2" 'Added 9/11/2006
NewDir.SetInfo
Set NewDir = nothing
Set NewWebServer = nothing
set w3svc = nothing
wscript.echo "The site for " & domain & " has been created"
End Function


Steven Burn wrote:
> Do you have the no-cache meta tag included?, and of course, caching in IIS
> turned off?
>
> --
> Regards
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
>
> <heintz.larry.RemoveThis@gmail.com> wrote in message
> news:1158012156.695036.89240@e3g2000cwe.googlegroups.com...
> > Hello All,
> >
> > I have a web site creation script that I wrote for IIS 5.0 and am
> > using a tweaked version it in IIS 6.0. The web site is created and
> > works fine except for static pages are being cached. If I do a IISRESET
> > the caching issue is gone until I make a change to the static page
> > again. The weird things is that when a site is created manually in IIS
> > 6.0 the caching issue does not happen. I have been able to reproduce
> > this issue on 2 different 2003 Server Web Edition and 2003 Enterprise
> > Edition. Anyone have a idea's?
> >
 >> Stay informed about: Web Site Creation Script and Caching Static Pages Issue 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
IIS 6 not caching static files - I have an IIS 6 web server doing about 10 million hits a day. I have noticed what appears to be a problem with caching of static image files. After restarting the web service and running for about 1/2 a day, I have captured these numbers from the &quot...

IIS 6 ASP.NET caching static files - In a ASP.NET applications static files.(pdf) created dynamically from the application are cached from IIS. someone has one solution

IIS 6.0 caching mode for static files - Hi there, We are using IIS 6.0 to host over 10 different sites. All the sites are quite similar in nature and they are sharing a remotely stored (UNC-based) large image repository. Just wondering how IIS 6.0 caches those static image files. Does it....

Static File Caching at Server Side - I have been struggling with this for years, and have recently become determined to find a solution for this. If anyone has *any* ideas about this, please offer your suggestions. Basically, I am having problems with static files -- specifically CSS --...

Http Compression not caching static files - I'm using IIS 6.0 http compression for static files, specifically .dll files. Using a sniffer I find the compression to be working correctly. The dll's returned are significantly smaller and the Content-Encoding: gzip header is returned. The only..
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]