-1

I am using an include file by doing:

<!--#include virtual="/includes/leftNav.shtml"-->

I changed the include file, and the changes are not picked up. I'm guessing that they will be with a server restart; is it possible to have the changes picked up w/o a restart?

Sinan Ünür
  • 116,958
  • 15
  • 196
  • 339
bmw0128
  • 13,470
  • 24
  • 68
  • 116
  • you don't need a server restart, its a client side include. – Andrew Magill Aug 27 '09 at 21:34
  • maybe this matters...i deploy the application in GlassFish with "/" as the context. I then change the context to "/foo" and deploy the EAR again, but with the name foo.ear. In effect, there are two applications running. The include change is not showing up in foo.ear whenn foo.ear is deployed – bmw0128 Aug 27 '09 at 21:36
  • -1 What preprocessor are you using? Are you using a content management system? There's nowhere near enough information here to answer this question. – Imagist Aug 27 '09 at 21:37

3 Answers3

2

The root level page is possibly cached, either by the server itself or the browser. Adding a query string to the request (i.e.: http://mysite.com/index.shtml?0827091630) might get you a new copy of your doc.

Steve -Cutter- Blades
  • 5,057
  • 2
  • 26
  • 40
2

Server-side includes don't need a server restart. They take immediate effect. If they don't work, it probably means that your Apache server is not configured to support server-side includes at all, or not for the type of file you are trying them on.

Martin v. Löwis
  • 124,830
  • 17
  • 198
  • 235
2

There tends to be caching issues for any static content type extensions it really should work with just a ctrl+F5

RHicke
  • 3,494
  • 3
  • 23
  • 23