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??
...
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
...
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.
...
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...
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
...
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...
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.
...
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...
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...
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...
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...
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...
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...
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...
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...
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 ...
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...
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 ...
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?
...
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
...