473,503 Members | 6,385 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 1036
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
"conditional" 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
2801
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...
9
2891
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....
19
2682
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
947
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...
3
1780
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...
8
1920
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...
1
1112
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...
1
1829
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 ...
0
1293
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...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6976
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...
0
7449
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...
0
5566
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4993
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...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
372
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...

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.