How to force reload a XML / HTML files on server

How you wish the browser not to cache the configuration file inside an XML file.

adding the following to /etc/httpd/conf/httpd.conf
would help a bit.

# For XML
# Force reload
<FilesMatch "\.(xml|html)$">
Header set Cache-Control "max-age=60, public, must-revalidate"
Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"
</FilesMatch>

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Like

Related Post

2 Responses

  1. guest says:

    Hello, I’d rather use killall or
    ps xa|awk ‘/[f]irefox/ {print $1}’|xargs kill -9.

    Reply
  2. namran says:

    yes .. can use killall too , if you using the default firefox installation.

    but it will not kill the custom firefox which had launched from a custom script like the following ..

    /usr/local/lib/firefox-3.5.13/firefox-bin

    and .. producing list of process as follows :

    [namran@nb-namran ~]$ ps xa |grep firefox
     4626 ?        S      0:00 /bin/sh /home/namran/.bin/firefox
     4630 ?        S      0:00 /bin/sh /usr/local/lib/firefox-3.5.13/run-mozilla.sh /usr/local/lib/firefox-3.5.13/firefox-bin
     4634 ?        RLl  174:47 /usr/local/lib/firefox-3.5.13/firefox-bin
    Reply

Anything to add?

X