473,657 Members | 2,845 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS File Updates

Suppose an aspx page is linked to a css file in the typical way:
<LINK href="MyCSSFile .css" type="text/css" rel="stylesheet ">

Then the css file gets modified on the server while a user is viewing the
aspx page.

When specifically would the user get the updated version of the css file? I
presume it would be on the next PostBack or on the next request of an aspx
page that links to the modified css file... but I'd like confirmation of
that.

I'm interested in knowing knowing the specific mechanism that controls when
css files get updated on the client. Does the browser check on every trip to
the server?

Thanks!

Nov 18 '05 #1
1 1039
Guadala Harry wrote:
Suppose an aspx page is linked to a css file in the typical way:
<LINK href="MyCSSFile .css" type="text/css" rel="stylesheet ">

Then the css file gets modified on the server while a user is viewing
the aspx page.

When specifically would the user get the updated version of the css
file? I presume it would be on the next PostBack or on the next
request of an aspx page that links to the modified css file... but
I'd like confirmation of that.

I'm interested in knowing knowing the specific mechanism that
controls when css files get updated on the client. Does the browser
check on every trip to the server?


This depends several factors like the protocol version (HTTP 1.0 vs. HTTP
1.1), or caching and expiration related headers, and of course your web
server's configuration.

I'm simplifying this a bit, but assume every resource you obtain over HTTP
has an expiration time. As long as this time has not elapsed, the resource
is considered "fresh", and no new version will be obtained from the origin
host. After the expiration time has elapsed, the client issues a
"conditiona l" GET, asking the host whether a newer version exist or if it
should continue to use the local copy (and update the expiration time).

This approach allows you to adjust two parameters:

-- the cacheability per se (if there's no local copy, the client must obtain
a new copy of the resource for request)

-- the expiration time
Cheers,
--
Joerg Jooss
jo*********@gmx .net
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2822
by: Steve | last post by:
Hi all i am just starting to get back into VB and i need a little help. I am writing a program that asks a user to type in a set of numbers/letters (in this case shipping containers). Once the data is entered i have my 4 letters and i want to be able to call up data relating to the 4 letters. Basically i want it to show who the container belongs to and any other data i wish to put in there relating to the container.
9
2896
by: Mats Olsson | last post by:
I have an xml file, which is to be updated by an asp script (vbs) when users are submitting forms from their browsers. Now I wonder if there is anything that stops the following to occur: 1. User A submits form, resulting in asp script to create MSXML2.DOMDocument.4.0, which loads the xml file and updates the in-memory DOM tree 2. User B submits form, roughly at the same time, also resulting in asp script to create...
19
2702
by: jameso321 | last post by:
Hi, We run an MS Access 2000 DB with about 15 users. It is on a Win 2000 Server (SP4) machine and runs through Citrix Metaframe Presentation Server 3.0. --------------------------
2
957
by: julio | last post by:
I comment a new problem that we have, or that today we realized, and that is driving crazy to us. The subject is with file uploads. And I suppose that it has to do with automatic updates of Windows updates, because in the only automatic machine that does not do updates, it is in the only one that run fine. The problem is thus: if instead of looking for a file we tried to write a text, begins to give us a Javascript error, until we...
3
1787
by: JDRaven | last post by:
(also posted under webdevelopment-inetserver-iis newsgroup, not sure which is most appropriate) We have a Windows Forms app that has been successfully running for several months. Part of the app checks for certain file updates from a web folder at login time and downloads any component updates that are needed. There are about 15 files of different types that could be downloaded, including .rtf, ..ppt, .xls, .exe and .mdb extensions. ...
8
1929
by: rdemyan via AccessMonster.com | last post by:
Anyone have any ideas on how to determine when the back-end file (containing only tables) has been updated with new data. The date/time of the file won't work because it gets updated to the current date/time when the back-end file is compacted. I'm just looking for an easy way to determine when there has been a change to data in any table in the back-end file. Maybe something is updated in one of the system tables??
1
1120
by: =?Utf-8?B?YWxlb24=?= | last post by:
Plugin.ocx file continues to be removed when we run MS Updates. The databases are 2003 and forms don't work without the plugin.ocx. Tried making the .ocx file read only, but that didn't work. We have to copy it back into Windows System folder each time we run updates. Any ideas? -- aleon
1
1847
by: suresh_nsnguys | last post by:
Hi, I will allow users to download one zip file(contain HTML file and 1 image directory with -gif,jpeg files) to his local hard disk. HTML file contain source code to display images when user execute the 'HTML' file locally.I will display the images present in the local directory one by one in loop until user close the browser. I want to implement like this If i execute the 'HTML' file locally,first it needs to connect...
0
1303
by: =?Utf-8?B?TWF0dA==?= | last post by:
Hello, Can someone please advise. I have been unable to install any security, wmp and explorer updates for some time. Looking at the logs there seems to be trouble with the location of the update.inf file and this seems to tie in with other peoples problems on the newsgroup. However, on performing a file search to find the location of this file i find it does not exist, only in the downloaded updates.
0
8302
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8820
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8499
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8601
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5630
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.