expires

Getting confused about Expires headers when testing in Chrome

Getting very confused about 'Expires' header here! Sometimes it works as expected - and some times not. I am using the following code to set my expiration headers. Note this is being done with ASP.NET in an MVC custom attribute - thats not really relevant here - but explains where 'filterContext' is coming from. HttpCachePolicyBase cac...

Facing problem in setting Expire Time for custom build Dojo script

Hi I am new to Dojo and tried to compress the Dojo Script by creating a custom build. As we know that it will be good to set expiry so that file should not get downloaded at every time but that is my problem as since compression and custom build there is no EXPIRE TIME for Dojo.js. How can we set Expire for the compiled custom build. ...

What is the best method/options for expiring records within a database?

In a lot of databases I seem to be working on these days I can't just delete a record for any number of reasons, including so later on they can be displayed later (say a product that no longer exists) or just keeping a history of what was. So my question is how best to expire the record. I have often added a date_expired column which i...

LD iisadmpwd - change expired password

Hi guys I need to be able to allow users to change their expired password using \iisadmpwd utility inside IIS It looks as though if your password is expired, you can't authenticate into AD and therefore can not change your password. What are my options? ...

nginx not setting expires headers on Rails static assets

I can't seem to get nginx to set expires headers on my static assets in my Rails app. My app is deployed using Phusion Passenger & nginx. Below is the related section of my nginx config file server { listen 80; server_name my.domain.tld; root /home/deploy/my.domain.tld/current/public; passenger_enabled...

PHP Sessions Expiring Unexpectedly

I'm at a loss here. I've got a specific group of users upstairs whose sessions seem to expire completely randomly. It's not just when they leave the site sitting for a while, it can expire while they're browsing around. For me and most of our users everything works just fine. It's not a browser issue, we've got people in FF and all I...

Setup expires headers PHP & Apache

How can I setup expires headers in PHP + Apache? I'm currently using an auto_prepend to serve resources gzipped but I'd also like to maximise the cache. How can I set these up? ...

HTTP Expires header not respected by browser?

Hello, I have a situation where my (embedded) web server is sending Expires header, but the browser does not seem to respect the header setting, i.e., if I refresh the page, the browser requests the resources that are supposed to be cached. Following are the headers that are getting exchanged: https://192.168.1.180/scgi-bin/ajax/ajax....

JSR168 Portlet Strange Page Expiring Problem

I'm having a strange problem and no luck debugging. I was tasked with writing a JSR168 compliant portlet to search a database. When you open the portlet, you're given 6 search boxes for different criteria to search several thousand records. Once you press search, it brings up another page (it keeps the first page and uses <jsp: include>...

Update cookie expires without any change in the value

How can i simply update the expiry of a cookie on each page request without having any impact on its value ? ...

CakePHP cache control for asset files (images, CSS, etc)

What's the best way to use CakePHP to control the Expires headers for image and CSS files? My host unfortunately doesn't support mod_expires or mod_headers, so I can't simply set these values in an .htaccess file. Right now there's no cache control for my files and a lot of unnecessary requests are made. What's the most elegant way to ...

Possible to do "relative" Expires HTTP headers?

For example, I want my static files to expire 7 days after they're first downloaded. What should I set the Expires header value to be? ...

Add an Expires Header

hi there I just made a website and after running it, i think is running slow. I've put YSlow firebug plugin, and I get a C mark for my website speed(very bad, because there are some images texts and some css) first i have to "add an expire header". How can I do that, if my hosting servers are on godaddy deluxe linux account? many thx ...

Passenger/Apache: Can't set expire headers for versioned resources (rewrite rule not recognized)

Hi all, I'm trying to set the expire headers for Rails' auto-versioned resources, like whatever.css?1234567890 . (I don't want to set the expire headers for unversioned resources.) The only method I could find online involved two steps: 1) rewrite all urls that end in 10 digits to load from /public/add_expires_header instead of from /...

What is the proper way to tell the browser not to cache?

I have a web page that always needs to stay current. I do not want the browser to cache it. To that end, this meta tag is embedded with the page: <meta name="Expires" content="Tue, 01 Jun 1999 19:58:02 GMT"> However, some browsers seem to ignore it. Chrome is particularly bad at it, though other browsers tend to do the same thing. ...

Rails time stamps on images in CSS

So Rails time stamping is great. I'm using it to add expires headers to all files that end in the 10 digit timestamp. Most of my images however are referenced in my CSS. Has anyone come across any method that allows for timestamps to be added to CSS referenced images, or some funky re-write rule that achieves this? I'd love for ALL i...

What is the best way to set far future expires on images with Django?

I am using django-compress with far future expires for my css and js files. Works great. I'd like to do something similar for other static content (images, flash, etc). I can set a far future expires on this content, but I must manually rename the files when they change. Is there a better way to handle this? ...

How can I add expire headers for scripts that are not on my server?

Hey I was wandering if you could help me with this. I have a website and I put the expire headers on all pages/img’s and scripts but I don’t kno how I could add expire headers to scripts not on my page. For example Google Analytics it has expire headers set to 1 day. But not Google is my problem. Some other adds from a website are the re...

Setting expires header for a specific URI?

Hello I'm trying to set expire header for a specific URI but for some reason it is not working, what I've done so far in the httpd.conf file was the following: <LocationMatch "/mysite/contentservices/weather/get.json"> ExpiresDefault A86400 </LocationMatch> <LocationMatch "/mysite/*"> Options FollowSymLinks MultiViews AllowOver...

When is a cached stylesheet refreshed in Rails ?

In a Rails application, if I group several stylesheets into one using caching, will the resulting file be automatically refreshed when one of the stylesheets is updated ? stylesheet_link_tag "style1.css", "style2.css", :cache => "mystyles" And, if not, how can I expire the resulting file ? ...