Solved

How can i remove caching from certain include file?

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

758 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now