Re: [PHP] Expiring other resources with HTTP headers

2006-02-27 Thread tedd
El lun, 27-02-2006 a las 12:35 -0500, tedd escribió: ps: your email address has generated a couple of bounced blog stuff thus far. Yeah, I seen that a couple of time now. What is going on? I have not anything to do with blogger.com, I don't know what is happening. What can I do to solve thi

Re: [PHP] Expiring other resources with HTTP headers

2006-02-27 Thread William Lovaton
El lun, 27-02-2006 a las 12:35 -0500, tedd escribió: > ps: your email address has generated a couple of bounced blog stuff thus far. Yeah, I seen that a couple of time now. What is going on? I have not anything to do with blogger.com, I don't know what is happening. What can I do to solve this?

Re: [PHP] Expiring other resources with HTTP headers

2006-02-27 Thread tedd
William said: That's not exactly what I am looking for. That would cause the JavaScript file to be requested to the web server every single time. I just want the browser to request the file only when it have been modified on the server. Let's say that by default, those JavaScript files expire

Re: [PHP] Expiring other resources with HTTP headers

2006-02-27 Thread Stut
William Lovaton wrote: Let's say that by default, those JavaScript files expires every 4 hours and that when a PHP program regenerates the file in the server it should, somehow, notify the web browser that the file changed and that it should request that file the next time it reloads the page or

Re: [PHP] Expiring other resources with HTTP headers

2006-02-27 Thread William Lovaton
Hi Tedd, That's not exactly what I am looking for. That would cause the JavaScript file to be requested to the web server every single time. I just want the browser to request the file only when it have been modified on the server. Let's say that by default, those JavaScript files expires every

Re: [PHP] Expiring other resources with HTTP headers

2006-02-27 Thread tedd
I know I could reduce the expiration time to reduce this problem but most of the time those files do not change. What can I do to notify the web browser that the file in the cache is no longer valid? -William William: Include this: HTH's tedd -- ---

Re: [PHP] Expiring other resources with HTTP headers

2006-02-27 Thread William Lovaton
Nice idea... thanks. I agree with you that the ability to expire another file would be somewhat risky but I fail to see how this could be exploited. May be the browser should allow this kind of operations from pages coming from the same server. But again, I don't think this is posible to begin w

Re: [PHP] Expiring other resources with HTTP headers

2006-02-27 Thread David Tulloh
I don't think you can expire another file, I would consider any ability to do so a bug in the browser. Someone with too much time on their hands could possibly turn something like that into a security risk. I would solve the changing javascript problem by subtly altering the pages that use the ja

[PHP] Expiring other resources with HTTP headers

2006-02-27 Thread William Lovaton
Hello everybody, I write here to find out if this is possible: I want to expire an static file in the web browser through an HTTP header (Expires, Cache-Control or something else) sent from a PHP program. The usual thing is that those headers apply only to the program or file sending those heade