Solved

How can i remove caching from certain include file?

Posted on 2009-05-19
3
152 Views
Last Modified: 2012-05-07
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.
0
Comment
Question by:Styleminds
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 41

Accepted Solution

by:
HonorGod earned 250 total points
ID: 24434377
Set the cache-control to no-cache


http://www.webmasterworld.com/forum92/1477.htm
0
 
LVL 14

Assisted Solution

by:ziffgone
ziffgone earned 250 total points
ID: 24434944
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
 
LVL 41

Expert Comment

by:HonorGod
ID: 24435835
Thanks for the grade & points.  Sorry you didn't think the answer worthy of an A

Good luck & have a great day.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question