expires

(php)how can I expire the previous page after any database transaction?

I am saving personal information in PHP page.when user click submit it saves but user can go back in submit information page through browser back button.Hoe can I expire my previous page?? ...

Cache-Control and Expires doesn't Work

Hi, I set up cache-control and expires headers via .htaccess but already it doesn't load from browser cache. When i enter the uri, i am waitting for load from web site. URI: http://www.btgmaslak.com/static/images/main_container_background_11.jpg ...

Add an Expires or a Cache-Control Header in JSP

How do you add an Expires or a Cache-Control Header in JSP. I want to add a far-future expiration date in an include page for my static components such as images, css and .js files. Any help is appreciated. ...

iis 6.0: Setting Expires header don't work + cache control

Hi ! from all the articles i read it seems that setting the Expires http header is very easy. i went to the wanted directories(with iis6.0)-->right click-->Http headers--> Enable expires and setting the period-->OK that should do the work, i thought... but when i test my page again with PageSpeed and other tools its teling me that th...

Ruby on Rails: how to set content expiration for 15 minutes if it is an AJAX request

Is the following a good form of detecting AJAX request and setting expiration for 15 minutes so that the same GET will not require any network traffic? # in controller if request.xhr? response.headers['Expires'] = (Time.now + 15.minutes).httpdate response.headers['Cache-Control'] = '' # override any no-cache, must-revalidate end ...

JS/CSS caching problem

Hello, To reduce http requests, as well as make the rollout process easier for js/css files, I've setup my php app to do concatenation of js and css files. All included files are sequentially combined into one large file using 2 letter codes for each file (ex. home.js code = "AA"). To generate the names I combine all the codes in the or...

PHP Auction Expiry Tracking

What is the best way to send e-mails or perform functions on a small, non-real money auction script? This script is a learning exercise for me and I was wondering what the best way would be to process actions when the auction has expired. A cron job every minute seems - to me - a method which can easily be surpassed. ...

For cache-control to expire in 10 years, is using doc.css?v=128 exactly the same as doc_v128.css?

When using Cache-Control and Expires header so that a page won't expire in 10 years: Cache-Control: max-age=315360000 Expires: Sun, 19 Jul 2020 18:06:32 GMT will using line 1 have identical result as line 2? <link href="/public/doc.css?v=128" ... > <link href="/public/doc_v128.css" ... > I was thinking maybe some browser will take...

Will caching work if one of the web servers has a clock that is slightly off?

It is said that the web servers' clocks must be identical for the Expires and Cache-Control headers to work? Why is that? Can't they be off by 1 second or a few minutes? If the cache is supposed to be good for 1 year, then won't a time difference of a few minutes or even a few hours not matter on one or some of the web servers? In ht...

Django admin logging out on model save

Hi there, I'm running a Django app for my root public_html folder, and it's working fine. But there's a problem with one of my other apps. The problematic app is accessed through a redirect to a subdirectory (e.g. http://workingsite.com redirects to public_html, http://brokensite.com redirects to public_html/foo) The problem is that th...

Add Expires Header in Rails

Now I am trying to implement High web site performance following YSlow rules. In terms of Expires Header, I have configured in nginx like the following: if ($request_uri ~* ".(ico|css|js|gif|jpe?g|png)\?[0-9]+$") { expires max; break; } Yes, I got the good result because I could not see css and javascript files followed by time...

How to set Expires HTTP header on a single JS file in Apache Tomcat?

Hi, I have a js file which is cached between 5-10 minutes, depending on whether I'm using tomcat from the eclipse (via GWT plugin) or starting tomcat as standalone. This is strange as I'm using GWT as my framework and this file should not be cached at all (it's a nocache.js file to those of you who know GWT). I've read on a GWT Google gr...

Using meta expire to resolve swf file caching

Hi all, This is something that seems to boggle me and I want to sort the issue of SWF file caching out once and for all. I normally change the name of my SWF file and make the change to in SWFobject to reflect the name of the new swf file which then sorts out any kind of caching of the Flash swf file but I tried it this morning and wh...

XAP Expires after half a Day???

Hi All, Im just wondering what would be causing my xap to expire every half day (approx). What i mean is that in the morning a user hits the website and it downloads a copy of the xap, by the afternoon if that user goes back to the website and the website downloads another copy of the xap for them. I would hope that the only reason that...

Browsers, do they treat a random query string as a different file?

If I set a far future expire header for this file (take note of the query string): /css/getCSS.php?v=1284532156.css Will it treat the entire URL (including the query string) as a single file and respect the expire deceleration, but request the next version of the file... /css/getCSS.php?v=1284599999.css ...from the server as it won...

nginx passenger expires max cached pages

I have posted another question similar to this, which I thought I resolved. But it is coming back with another symptom. I am using REE/Passenger/Nginx and have the following in my nginx.conf location ~* ^.+.(jpg|jpeg|gif|png|css|js|swf)?([0-9]+)?$ { expires max; passenger_enabled on; } Ever since I did this, it seems ...

expires headers? How do I implement them and what are they?

I am using jquery. I have tried searching how to implement them but it makes no sense to me. It talks about apache and Django and Lighttpd, but I have no idea what those are. I used ySlow on my webpage and it told me I need an expires header.. Apparently it really helps with performance though and that's what I really need. Anyone help...

Why is the default cache expires header Thu, 01 Dec 1994 16:00:00 GMT? What is the significance of this date?

When some requests are processed via WebSphere application server, it sets a cache expires header of Thu, 01 Dec 1994 16:00:00 GMT. This date seems to be in a lot of documentation as a example of a properly formed date for an expires header...but it is also all over the internet in regards to actual responses. Where does this exact date ...

When do cached static files expire if not specified?

In IIS6, I notice that when "Enable content expiration" is not enabled, no cache-related or expiration headers are sent with the response. Yet static content, such as css files are properly returning 304 statuses on subsequent visits. When does this content expire if nothing is specified? Is it browser dependent? ...

Page Speed recognizes expiers headers, but YSlow doesn't

We're running IIS6 on Windows Server 2003. Our site is written in ASP.NET. We configured our site to expire headers after 7 days. While Page Speed gives us a check for "Leverage browser caching", YSlow gives us an F on "Add Expires headers". How can that be? An example page can be found here ...