How can i remove caching from certain include file?

Hello i have some include files that are .js file i need to remove caching for it ! so i need that the browser or the server always get the latest uploaded file and don't show any cashed file.
Thanks.
StylemindsAsked:
Who is Participating?
 
HonorGodConnect With a Mentor Software EngineerCommented:
Set the cache-control to no-cache


http://www.webmasterworld.com/forum92/1477.htm
0
 
ziffgoneConnect With a Mentor Commented:
Hi Styleminds,

Do you have access to PHP or another serverside language on your site? You won't be able to add cache headers to JS files unless you can add a Server Side mime type to your JS files, then you can add cache control headers.

If you web hosting is Apache based with PHP support, then I have a solution for you.

Regards...
0
 
HonorGodSoftware EngineerCommented:
Thanks for the grade & points.  Sorry you didn't think the answer worthy of an A

Good luck & have a great day.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.