Solved

How can i remove caching from certain include file?

Posted on 2009-05-19
3
150 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

777 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