HTML - Hi, And A Question About Caching...
First off, hello to everyone! I'm relatively inexperienced in the area of webmastering, and have a weird question...
I created a site for the union where I work, and have noticed a very annoying phenomenon. When we update a page, it sometimes doesn't update right away (sometimes for several days) when we try to access the page from within our building. Clicking "refresh" has no effect in IE, but clicking "reload" in Firefox does! Also, in both browsers, clearing browser cache before re-loading the page doesn't force the browser to get the new page from the Internet (I thought it might, but I guess not.) I did notice, however, that clicking a link to the page (rather than typing it by hand), gives a different result: in IE, it takes you to the old version of the page, but then hitting "refresh" now really does load the new version; but in Firefox, the behavior is the same as if the URL were typed in by hand. A friend who is much more experienced than I am said it's likely that our IT folks (who administer the network we use to access the Internet in this building) are running software that caches frequently-accessed pages, to speed things up and cut down on bandwidth usage in the buillding. If this is the case, is there some script or code I can insert into my HTML that defeats this and forces the browser to load the page from the actual URL on the Internet rather than the cached version? Or, if my experienced friend is wrong, what on earth could be causing this weird problem? The hosting company says it seems like a local caching issue, and not on their end. Thanks for any help you may have! -Mark Similar TutorialsHey guys, I'm not one being familiar with how caching works, and reading on it only made me more confused/unsure. Okay, here goes: I've inherited a website from someone else (professional, I'd assume) and now I'm solely responsible for updating and maintaining it. What I noticed is that when I upload (via FTP) new files, it takes forever for me to be able to view the new page. By "forever", I mean usually 2 or 3 days, and never less than a day. So what I did yesterday was to add in two additional META tags in the header: Code: <META HTTP-EQUIV="Expires" CONTENT="Fri, 1 Jan 2010 1:00:00 GMT"> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> where I deliberately chose a past date so that it'll force the server to serve the latest copy. But after what happened, I realised this is wrong, because the page kept reloading everything, including images during any mouseovers! My question... how should I set it so that it will only cache pages that have not been modified? If it is possible to separate -- within HTML or PHP -- HTML files from larger files like pictures, PDF etc. that would be even better. i need to disable image caching <img src="picture.jpg?1222259157.415" alt=""> - doesn't suit me as i want to disable caching for Flash app and it doesn't support this kind of links also don't tell me about: header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' ); header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); header( 'Cache-Control: no-store, no-cache, must-revalidate' ); header( 'Cache-Control: post-check=0, pre-check=0', false ); header( 'Pragma: no-cache' ); as for images this just doesn't work Often when I need to test a page in a browser the changes I made to the page dont happen because of th browser caching the page. With Chrome I'm able to hit ctrl F5 but with firefox its hit and miss. Regardless I would like to not have to worry about it at all. Is there some sort of solution to this problem? thanks Hello, Is there a method to use a text file to update information on a couple pages at once? I have a "news" section on each of my pages, but whenever i need to update the news i have to change it on each page, which gets very long. I think i remember doing something awhile ago where i would have code in the news section that would read the text file; so i could simply change the news in the text file instead of every page. THanks for the help, JC Is there a way to make the number for a list item in an ordered list a hyperlink? For instance, where an ordered list is being used for footnotes, can the numbers be set up to link to the source documents? If so, what does the markup look like? Thanks. Is there anything wrong with thia code? <h1><font color="000000"><em>Recycle With Us</em></font></h1><br clear="all" /> Shouldn't the <h1> tag be closed last? Thanks, Karen I was looking through the code of this one website and i saw this: <script language="javascript"> <!-- insertPoll2('76375'); --> </script> I'm a bit confused by how this works, i dont know anything about javascript but this function here is used to create a poll and i want to do that on my website, but how does this work? Because the insertpoll2() function is Inside comments but also inside javascript braces. What's going on here? Thanks! Hello! I am new to this forum...sorry if I'm posting in the wrong place. I'm contructing my own jewelry website. I put in my ALT tags, and when I view the pages in my browser (I'm using Dreamweaver), the ALT tags don't show up. I don't know what I'm doing wrong. Here's a sample: <img src="images/citrine.jpg" alt="citrine necklace"> Am I doing something wrong? I would really appreciate knowing. I'm just about done with my website...this is the last thing I'm working on. KathyK27 Hi there, great website! been browsing the forums and searching and havent found what i am looking for, so here goes a post. I have my own website, and I also have a webmail account with my hosting company (ixwebhosting) what i want to do is make 2 little boxes on my website, where you put username and password, and have that then take you to the ixwebhosting webmail login and go in directly to my webmail, can that be done? any ideas or links much appreciated! thanks 4 ur time! I have a real rookie question. I am new to CSS and I was wondering if I need to upload my CSS files to me web server, and if so do they need to go into a special directory on that server? Thanks this issue has been solved I think PHP is a great thing...just frustrating at times - eh, we all get frustrated sometimes. I never get to vent to anyone about my lack of understanding web design. I did indeed try this navigational menu on a website...I think it's a really neat idea, actually - boy, can this ever save some time. However I've ran into a small little problem - I'm sure an even medocre-level designer will point out some obvious problem I'm doing that is just going over my head. The following URL: http://www.conversationalhypnosis.net/navigation.php I have setup a test to see if the navigational menu icons to the left would work, and voila! They did! But there's this little bugger that looks like this: that's sitting right on top of my menu...and it's putting a little space in. See it there? Again, the URL is http://www.conversationalhypnosis.net/navigation.php The menu 'block' should be flush up against the header block. You'll see what I mean - it's much easier understoot when simply looked at vs. explaining it. I put the following code in to "navigation.php" where I wanted the menu to appear: <?php include("navigation.html");?> Right? I also made sure "navigation.html" was uploaded (and obviously it is because you can see it when you go to the "navigation.php" page.). Any helpful comments to this would also be greatly appreciated! P.S. Is this forum the best one to post a question about tables/columns? I'm using a web template that I "think" uses tables (The same site above)...right? There's a column along the right-side of the page that goes all the way down (as needed) the page...I'd like to put an RSS feed there with updated content - but the only problem is sometimes, depending on the RSS feed headline/description, the column will expand toward the center of the page. This in turn screws up the look of the actual "content" of the page (which is to be the text in the "middle" if you will). Any ideas on this? If I should direct this "tables" question elsewhere please let me know and I'll gladly comply! I'm currently using Microsoft Expression web designer...I'm still in the process of finding "the best one". I made sure the "No Wrap" was NOT checked in that right-column, BTW. I am using a div relative to place text on top of an image. The problem that I am having is in Firefox when a dropdown list is overtop of this div tag, the div tag shows up on top of the dropdown. I do not want this to happen. It does not happen in IE and it allows the dropdown to show up on top. How do I fix this My code looks like this: <div style="left: 15px; position: relative; top: 20px;" border="0"><font size="2" color="#ff8c00"><strong>Example Text</strong></font></div> Thanks. Jeff M Hi, I am a bit of a noob so please bear with me if this sounds a simple question. I know all about precedence, but I don't know the right way of dealing with an issue I have. I have a number of nested lists containing 2 levels of UL LI. Whilst the level 1 styles may change, for instance I might have one style for the top bar on the website and another for the main nav, the 2nd level could be re-used in both instances. Lets say I create a generic style - "list-style1" .list-style1 {border...} <ul id="top-bar"> <li><a>level1</a> <ul class="reset-level1 list-style1"> <li> <a>level 2</a> </li> </ul> </li> </ul> When I'm styling the list, I reference the id #top-bar and then because I want to apply a generic style to level 2, I create another class called reset-level1 to reset li and a styles. The problem I have is that the reset is specific to #top-bar it takes precedence over my generic class .list-style1. I can of course hack it, but wondered how it can be worked round properly so that I can use my generic styles. Hope this makes sense. Thanks John How can I copyright or otherwise protect my images online? ____________________ Polo Shirt Printing T shirt Embroidery What exactly is XHTML. how much different from HTML is it? and, do I have to re-learn a whole bunch of stuff to write valid code with it? _________________ Golf Communities visa credit card review Hello, I'm new here, so like, hi and all that good stuff, hope everyone is well! So, my question. When you type into your browser, cnn.com and it resolves to http://www.cnn.com, is that done via the .htaccess file? Type cnn.com into your address field in your browser to see what I mean if you don't get what I mean. Some sites don't resolve to the www, like gizmodo.com (type that into your browser to see what I mean). I've got two parties saying different things, one says it's DNS, one says it's .htaccess. HELP? Thank you! Hey. New to Html so excuse my lack of understanding. I only know Basics, but my boss thought it was enough to get me to upgrade the companys current website. www.tvcsf.org.uk (current unupdated) I created the website thats not up yet by using Tables and had some one look at my Htm, he said its best to not use Tables but use div insted, so I've been making the website, but how do i add Frames into a <Div> Ill show you my code. <html> <head> <link rel="stylesheet" type="text/css" href="Stylesheet.css"/> <meta charset="UTF-8"> <title>Full Page Background Image | Progressive</title> </head> <body> <img src="images/DisHubLogo.gif" alt="" width="338" height="327" align="left"> <div id="page-wrap"> <iframe src="topbar.htm" width="100%" height="1075" scrolling="no"> <p>Your browser does not support iframes.</p> </iframe> <br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br> </div> <div id="page-wrap"> HOW CAN I GET REF FROM TOP BARS TO OPEN HERE AND TOP BAR STAYS THERE </div> </body> </html> Hi, I was wondering if it is possible to create an image that floats where ever you put it on the page. For example, it would float above this text, blocking it out. Basically I want it to ignore anything around of underneath it. I would also like it not to use scripts, if possible. Oh and one more thing, is it possible to do this between the body tags only? Thanks! |