Visual Studio keeps adding SharePoint features when opening a solution

Hello everybody. 
I'm facing a rather naughty problem. In a Windows 2012 environment (hosted inside an Azure virtual machine), with SharePoint installed, I created a VS SharePoint on-premise solution. I added a feature, and started adding lists, libraries, site columns, layout
pages and such. At one point, every time I added a new list definition, the VS would create me a new feature. Which is not what I wanted, so I manually deleted the new feature and added the list to the first feature. No matter how much I try, VS keeps adding
features instead of using the one I already got. 
But that's a minor problem. After a while of adding lists, I did a check in to my TFS and closed the VS. After a couple of days, I open the VS again, and without a warning VS checked out the solution, checked out my only feature, removed the lists from it
and created one feature for each library. I ended up with feature2.feature, feature3.feature, ..., feature50.feature files!!! Insane!!! I had to manually delete them and re-add them to my first feature. 
Now I can't turn VS off without having this mess all over again. Why on Earth would somebody program VS to do this? Is there any way to turn this behaviour off?
Thanks in advance!
[Edit] Forgot to mention that I'm working with Visual Studio 2013.
Fernando A. Gómez F.
fermasmas.wordpress.com
Galería de ejemplos

Hi Fernando,
Thank you for posting in MSND forum.
Based on your issue, could you please tell me what template sharepoint project you create in VS2013?
In addition, I find a similar thread about your issue, please refer the Xiaoying’s reply to check this issue.
http://stackoverflow.com/questions/25857722/visual-studio-unexpectedly-adding-feature-on-load
Or you could try to download a new sharepoint template in this VS2013 and then create it check if you still get the issue.
I suggest you could try to create a same sharepoint project template from VS2013 on another machine and then check this issue again.
If you have any update message, please feel free to let me know.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • HT1925 I have a problem, whenever I try to install the iTunes This brings me to this problem  "microsoft visual studio c + + runtime library" Can I have a solution for this?  Thanks

    I have a problem, whenever I try to install the iTunes This brings me to this problem
    "microsoft visual studio c + + runtime library" Can I have a solution for this?
    Thanks

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • Visual Studio 2013 slows down + crashes when using Source Control features.

    I have spent two full days trying to resolve this issue but no luck so here we go,
    I have created a project using Visual Studio Team Foundation Server plug-in in the past. Later on I switched to
    Microsoft Git Provider.
    Now when I connect to that project in the Team Explorer and double click on the solution to work on it locally it somehow changes the plug in to Microsoft Git Provider automatically and of course I can't
    Commit/Commit and Push since I receive following error in the Team Explorer,
    An error occurred. Detailed message: Failed to open directory 'C:/Users/.../AppData/Local/Application Data/'
    Manually changing the plug-in to the Visual Studio Team Foundation Server
    results in a broken Team Explorer as below,
    With Settings leading to an empty pane, and also a warning in the Team Explorer's Changes page telling me the message below if I click on Pending Changes...
    Microsoft Git Provider is not the current Source Control plug-in. Change Plug-in
    And manually selecting the solution from Solution Explorer, right click and
    Add Solution to Source Control, leads to never ending hour glass and (Not responding) visual studio.
    New Projects
    Creating a new project is straight forward, unless I "Add to Source Control" is checked. If so, again never ending process if Microsoft TFS plug-in is selected in the tools and eventually me Ending the Visual Studio task. And a VERY long process
    (40+ mins) if I have chosen Microsoft Git but that finishes successfully rather.
    New TFS project from Team Explorer
    If I create a new project in my Online Web Studio
    Click on Open with Visual Studio Link => Opens and connects to a my newly created TFS in team explorer.
    Clicking new in Team Explorer under Solutions to create a new solution and bind it to this Repo
    leads to straight crash of Visual Studio and restarting attempt of VS.
    So I really can't use Source Control from visual studio other than cloning GitHub's existing repo's on Visual Studio and Committing my current Microsoft Git managed projects.
    I have attempted
    Repairing Visual Studio (no luck in results)
    Devenv.exe /setup (no luck)
    Trying to scrap the SCC info on my solution then at least it won't get picked up by source control then I can Check it in as a new project. (no luck and the solution picks the Microsoft Git upon opening it by clicking on the .sln file.) I have followed
    these steps in this stack overflow answer.
    And lots of mucking around like removing my workspaces almost Thousand times and putting them back, binding and etc.
    I am really stuck on this and it's holding me back from staring a new project (which is problematic using Adding to Source Control) and unfortunately is dependent on the old project (which is developed under Visual Studio Team Foundation Server Plug-in which
    is throwing tantrums)
    Would like to hear you pro-s input on this
    Using 
    Visual Studio 2013 Community edition (recently switched from Pro to Express to Community)
    Windows 7 (64-bit)
    Git tools
    Git windows installation
    Nuget Package manager
    Visual Studio Log File
    http://filesave.me/file/50620/log-txt.html
    Mehradzie

    Hi Mehradzie,
    Based on the description, seems you're working with Git team project in Visual Studio Online(formerly Team Foundation Service). I'd like to know whether you mean Visual Studio Git command tool as the plug-in, and if you're trying to create solutions/projects
    with Visual Studio and add them to the created Git team project.
    From the screenshot, you're not connect to the Git team project by using Team Explorer. To work with Git team project locally, you can follow the instructions as below:
    Connect to Git team project by using Team Explorer, after that you might install Git tools if you connect to the team project for the first time
    Clone the remote Git repository to a local git repository and set the path to local git repository
    Create a solution and select Git source control, also saved to the local path of the local git repository
    Select your branch, and then click "Changes" and Commit the changes
    Click "unsynced commits" and push the commit to remote git repository
    You can also refer to the links below for more information about getting started with Git in Visual Studio Online.
    http://www.visualstudio.com/en-us/get-started/share-your-code-in-git-vs.aspx
    http://blogs.msdn.com/b/visualstudioalm/archive/2013/01/30/getting-started-with-git-in-visual-studio-and-team-foundation-service.aspx
    If you still have any other concerns, please elaborate more details about your scenario. Thanks for your understanding.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Visual Studio quits responding and restarts when trying ot open any project

    After upgrading to VS 2013 Ultimate I can no longer open solutions.  I begin to see the solution open, but I then get a message saying Visual Studio has stopped responding and it restarts.  I can run fine if I run visual studio is SafeMode. 
    When I look up the log message in the Windows Event Viewer I see this from the .NET runtime:
    Application: devenv.exe Framework Version: v4.0.30319 Description: The process
    was terminated due to an unhandled exception. Exception Info:
    System.ComponentModel.Composition.CompositionException Stack: at
    System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__0(System.Object)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate,
    System.Object, Int32) at
    MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object,
    System.Delegate, System.Object, Int32, System.Delegate) at
    System.Windows.Threading.DispatcherOperation.InvokeImpl() at
    System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
    at
    System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext,
    System.Threading.ContextCallback, System.Object, Boolean) at
    System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,
    System.Threading.ContextCallback, System.Object, Boolean) at
    System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,
    System.Threading.ContextCallback, System.Object) at
    System.Windows.Threading.DispatcherOperation.Invoke() at
    System.Windows.Threading.Dispatcher.ProcessQueue() at
    System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr,
    Boolean ByRef) at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr,
    Boolean ByRef) at
    MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) at
    System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate,
    System.Object, Int32) at
    MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object,
    System.Delegate, System.Object, Int32, System.Delegate) at
    System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority,
    System.TimeSpan, System.Delegate, System.Object, Int32) at
    MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
    I'm running Win7.  I have install logs but I can't post a link in this forum.  So I'm putting in spaces:
    https:// onedrive.live.com /redir?resid=D0394CB203892A38!107&authkey=!AG-DER2KiNz2zzU&ithint=file%2ccab
    Tried doing repair, uninstall/reinstall. 

    Hi,
    According to your description, I recommend you can follow up these steps below to handle the issue:
    First, try to disable the windows process which is running.
    Second, you say you can run VS in the safeMode. It seems there is something wrong with VSCommands extension or other plugin. You can try to disable all extensions, restart visual studio and re-enable them; sometimes it resolves such issue.
    Third, you can try to reset your Vs by devenv.exe:
    http://msdn.microsoft.com/en-us/library/ms241273.aspx
    Please update the result after you already try methods above.
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Scripting in Visual Studio 2013 against Sharepoint online - is it possible?

    Hi,
    I've been plowing through documentation on developing SharePoint apps but all I really want to do (right now anyways) is getting a more robust environment for coding scripts and HTML on SharePoint online 2013.
    Currently I'm using SharePoint Designer 2013 to edit scripts that are in webparts like the Content Editor.  It works but SharePoint Designer has terrible syntax highlighting and when things get complex it's a pain.
    Question is: How can I point Visual Studio 2013 Community at a SharePoint 2013 online (Office 365) site so that I can open scripts and edit/publish like is done in SharePoint designer?  I need to be able to achieve this without all the sharepoint server
    malarkey.
    Is it possible?  Can someone point me at a resource?  I've done a lot of digging but can't find anything so maybe not doable but couldn't hurt to ask.
    Thanks,
    Jerry

    While working with app development, especially SharePoint hosted apps you can use SPFastDeploy VS extension to deploy the changes from your app.
    https://visualstudiogallery.msdn.microsoft.com/9e03d0f5-f931-4125-a5d1-7c1529554fbd
    If you create a SharePoint will create set of script files where App.js is the Key file and for HTML you can use Default.aspx. You can make changes to these files and just deploy only those changes to the App which will save lot of time and you can see the
    changes immediately.
    Regarding VS 2013 community, i haven't tried yet specific to SharePoint apps development.
    Hope this helps.
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Visual Studio 2010 and SharePoint Foundation 2010

    From a development perspective, if I have a Windows 2007 Operating System and download Sharepoint Foundation 2010, can I develop web parts using Visual Studio 2010?  Are there other components I need?
    When we convert to SharePoint Server 2013 in production, is there a version of VS that will allow me to remotely access that server? 

    Hi,
    If your server have already installed the SharePoint Foundation 2010, we can develop web parts using Visual Studio 2010/2012/2013.
    If you want to convert to SharePoint Server 2013 in production, you need use Visual Studio 2012/2013 and install Microsoft Office Developer Tools for Visual Studio 2012 which can be found here:
    http://www.microsoft.com/visualstudio/eng/office-dev-tools-for-visual-studio (direct install :
    http://aka.ms/OfficeDevToolsForVS2012).
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Can I use Visual Studio to develop Sharepoint Online workflows on existing site lists?

    I've been using Sharepoint Designer to develop workflows in Sharepoint 2013 on Office 365, but hitting limitations. I would like, for example, to be able to trigger a workflow when a list item is deleted.
    Perhaps naively I thought Visual Studio should be able to help. I've read of useful things like Remote Event Receivers - sounds exactly what I need. I've used VS before for Windows desktop applications in VB, so downloaded a trial version of VS 2013.
    Now I'm having doubts. It looks like I can create a Sharepoint App on a development site and create lists and workflows within it, but I can't access my existing lists to do anything more sophisticated than I already can in SPD. Is that right?
    I was expecting to be able to enter my Sharepoint site URL into Visual Studio somewhere, just like in SPD, and do wonderful things with my lists - but unless I'm missing something, that's not possible.
    Have I just got it completely wrong??!

    Hi,
    yes you can check those links
    http://blogs.msdn.com/b/bharatgupta/archive/2013/04/27/sharepoint-2013-app-workflow-with-custom-task-outcomes-in-o365.aspx
    https://msdn.microsoft.com/en-us/library/office/jj164126.aspx
    http://www.andrewconnell.com/blog/sharepoint-online-integrated-workflow-apps-workflows-as-apps-in-the-hostweb
    https://msdn.microsoft.com/en-US/library/jj220043.aspx
    Kind Regards,
    John Naguib
    Senior Consultant
    John Naguib Blog
    John Naguib Twitter
    Please remember to mark this as answered if it helped you

  • How to apply customization through visual studio to the SharePoint online

    We have an existing SharePoint online site, now there are some changes in functionality is required, can we do that change through visual studio and send that change to
    SharePoint online site? will it work?
    or we have to do the same only through the JQuery or other client side code directly to the site?

    Short list of what can't be done:
    deploy any compiled code to a server. This includes DLLs, EXEs and full trust SharePoint Solutions.
    deploy any file to a server disk drive. This includes anything usually stored in the 15 hive, site definitions, etc.
    What can be done:
    Anything that could also be done with SharePoint Designer.
    Anything that is a file that can be loaded into a library. You can create and upload pages, as long as there is no server side code (C# etc.). These pages can include JavaScript, jQuery, CSOM, HTML, CSS, etc.
    Create SharePoint 2013 apps. These can run custom code, but only if on an external to SharePoint servers.
    See here for more:
    http://technet.microsoft.com/en-us/library/sharepoint-online-developer-service-description.aspx (Developer Features in SharePoint Online)
    Overview of SharePoint 2013 development:
    http://msdn.microsoft.com/en-us/library/office/jj164084(v=office.15).aspx
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • Dear Adobe, it's great you keep adding new features, but what about ...

    Dear Adobe,
    It's great you keep adding shiny new "newsworthy" features ... but what about fixing long-standing bugs/issues and addressing the basics that have been missing since the the beginning?
    WHAT ABOUT LEAVING PASTED CLIPS SELECTED after a Paste operation in the Timeline?!? Like every other app in the world?
    What about leaving a complex selection of clips intact after an UNDO operation? (This costs me hundreds of minutes a week.) Like every other app in the world?
    What about allowing "." as an abbreviation for "00" when entering timecode?
    What about letting the renaming of a clip in a bin be reflected in timelines?
    What about a "reduce project" option? (To remove all items not used by selected sequences, like Ae.)
    What about actually useful clip labels (colors) which link between timeline items and their respective clips in the bin? (Like Avid & FCP) So we can mark certain clips a certain color in a bin and have that color be reflected in timelines?
    What about being able to close the title tool with a shortcut, not just a tiny 4x4 button?
    What about fixing the title tool so it's kerning/leading shortcuts are NOT the exact opposite of EVERY OTHER CC application?
    What about a simple "Select Media Relatives" command, like in FCP and Avid?
    What about fixing the audio scrub toggle shortcut so that it works without having to play or use the mouse?
    What about a shortcut for "Reveal in Finder" from the Timeline? It's in the context menu -- why no shortcut?

    I am curious about the time you waste ...and wonder what and why you are doing it... that causes this loss of efficiency.
    2. What about leaving a complex selection of clips intact after an UNDO operation? (This costs me hundreds of minutes a week.) Like every other app in the world?
    Maybe  there is a better way !

  • "Microsoft Visual Studio 2013 Professional Stopped Working" When I'm Trying To Install

    So for a college class we were given a link to a visual studio exe file.  Visual Studio 2013 Professional Update 2.
    When I try to run the exe file it just gives a black rectangle for a few seconds with the visual studio logo on it then stops and gives the message I showed in the thread title. and it also says "A problem caused the program to stop working correctly.
    Windows will close the program and notify you if a solution is available.
    I have the 4.5.2 update.
    Can't figure out why I can't install it.
    Heres a link to the vslog:
    https://onedrive.live.com/redir?resid=E43E7310F1682778%21113
    Hopefully someone can solve this.

    Hi,
    I see your logs and find the main errors:
    Error 0x80070642: Failed to install MSI package.
    Error 0x80070642: Failed to execute MSI package.
    Error 0x80070642: Failed to configure per-machine MSI package.
    Failed to resolve source for file: C:\Users\Paul\Downloads\packages\professionallp\cab8.cab, error: 0x80070642.
    Error 0x80070642: UX aborted on download progress.
    Error 0x80070642: Failed to send progress from BITS job.
    Error 0x80070642: Failure while sending progress during BITS job modification.
    Error 0x80070642: Failed attempt to download URL: 'bits://go.microsoft.com/fwlink/?LinkId=318664&clcid=0x409' to: 'C:\Users\Paul\AppData\Local\Temp\{02a877fe-5dac-4ac0-b869-4b9da00f651c}\cab46316ED5168B23181115750DAC599E81'
    Error 0x80070103: Failed to find product code for given upgrade code.
    According these errors, It seems the issue was due to you are using a web installer and your installation source may be corrupted.
    You can download the latest Visual Studio Professional 2013 package now:
    http://www.microsoft.com/en-us/download/details.aspx?id=44916
    I recommend you can install the VS by ISO installer.
    •Choose this download link, and then choose the Save button.
    •After downloading the ISO file, you should use the
    File Checksum Integrity Verifier tool to calculate and verify that the SHA-1 value for this file matches the value listed on the
    Visual Studio 2013 ISO Files SHA-1 Values page.
    And after down load you should follow up these
    Installation Tips in the link to install your VS.
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • How do I keep round cornered boxes when opening CS4 to CS4

    I produce a lot of forms which have round cornered boxes within the text boxes, when opening these indesign CS4 files into CS5 the boxes lose all but one of the round corners. The only fix I can see is to manually adjust the boxes within CS5. Is there an easier way? or will an update improve this. I find this very frustrating as I only have about 700 forms produced which will all need to be fixed.
    Please help!

    I sympathise, it's exactly the problem with upgrading.  I don't think Adobe cater for the user with 1000's of files very well,
    Well, Stix, I don't think they cater to small users with thousands of files. I'm sure that if my organization was buying hundreds of licenses for the full Creative Suite, and maybe LiveCycle Server, that they might be able to cater to me. But since we're only buying 1 license of the Suite and 4 of InDesign, then the fact that I have an archive of tens of thousands documents in forty languages going back to the early 90s that have to be updated on an intermittent basis, is not really high on Adobe's list of things about which it is important to care. My file management needs, while totally critical to me (and by extension the refugees I serve), aren't going to be that important to Adobe. They don't cater to me, and I can understand this, as I am not a big revenue stream for them.
    Wow, I'm flabbergasted! who knew that I would need to do this??
    However, the fact that it seems that only the forums regulars know  these critical facts is a massive failing on Adobe's part. I fail to  understand why this stuff that we post over & over again isn't  pointed out to the users when they install ID, or when they open a file  that was created in a previous version of ID. Seems like a  mind-numbingly obvious case for one of those little checkboxes that says  "Don't show me this again." Illy seems to handle this without issue.
    my documents are of a style whereby I may need to make changes to two 
    words in a document created in Indesign from 2004, are you suggesting  
    that I need to keep all versions of Indesign for evermore and only use
    the program that created the document to open/edit? This is a very
    impractical solution.
    As Bob has already pointed out... yeah. It's impractical, but it is also a solution.
    In your shoes, I'd mention to your IT folk that your long-term IT plan should include keeping some old apps around in virtualization; that way when InDesign CS10 reflows your document created with CS6 when you just want to update a logo, you can just boot up your image of Windows 2012 End-Of-The-World-Edition without needing IT to help you out.

  • Changing which files are opened automatically when opening a solution

    When I open a solution, VS automatically opens various files in the editor.   There must be a configuration setting somewhere in the solution that tells VS which files to open but I'm unable to find that setting.  Anyone know where this setting
    can be found?

    It's in the .suo file.
    If you have a Foo.sln then you will also have a (hidden) Foo.v12.suo file and that's where this information is stored.
    The .suo is a binary file in an undisclosed format.
    Solution User Options, I believe, is what .suo stands for.  (At least, that's what I say in my head when I see .suo.)
    It's user-specific and machine-specific, and therefore not something that should be committed to your revision control system.

  • New timestamps added to comments when opening document

    Pages '09 Version 4.1 Build 923
    on a Mac OS X 10.6.8
    Hi,
    I have a document which I am working on in Pages.
    When I insert a comment to it (i.e. the yellow boxes on the left-hand side), a timestamp is added to the comment automatically.  Although I don't really need that, this is fine and I can always delete it while writing my own text.
    However, what really annoys me is the following:
    Whenever I open the document again (after having saved and closed it earlier), the current timestamp is added to all comments in the document.
    If I then save, close and re-open it again, a further timestamp is added to the document and the first timestamp is also reset to the current time.
    Thus, at the moment, in *every* comment box of the rather large file I'm reviewing, I have four separate lines reading "March 9, 2012 12:31 AM". If I close and re-open the document again, there will be five lines reading "March 9, 2012 12:35 AM" (or whatever the current time will be then) in every single comment of the file.
    If I delete the three or four timestamps-per-comment, the "game" will start again the next time I open the document.
    Amy ideas at all?
    I should perhaps add that I'm working here with .doc files (not .pages files) and that I edited the info.plist of Pages to give it the role of 'editor' instead of 'viewer' for all ".doc" files. Mainly to ensure that if I work on a .doc file which I want to remain a .doc file, I don't have to Save As (.doc copy) all the time but can just save in the normal way. Could this interfere with the above problem?
    Thanks!

    "I should perhaps add that I'm working here with .doc files (not .pages files) and that I edited the info.plist of Pages to give it the role of 'editor' instead of 'viewer' for all ".doc" files. Mainly to ensure that if I work on a .doc file which I want to remain a .doc file, I don't have to Save As (.doc copy) all the time but can just save in the normal way. Could this interfere with the above problem?"
    Here is your problem. Every time you open a .doc to Pages it is a new document. When you work on in Pages it is a Pages file and not a .doc file. If you want to work in PAges save the file as the generic .pages and do the export for .doc. Keep that name and next time you Save as Word or export as word in the same location the .doc file will be overwritten with the new one. and you'll only have on .doc file and one .pages file.
    If you want only have .doc files don't use Pages.

  • How can I disable toolbar features when opening a file in a browser?

    Hi,
        I am trying to create an application that loads a pdf in a browser and want to disable certain toolbar features so that the user is incapable of ever seeing them. I know how to do this manually by going to the toolbar settings, but the user can easily enable them as well doing the same process. How can I code this to enable and disable features of adobe reader without having to change the registry keys or by doing them manually? Is there a way to do this? Is there a command that I can type in the command prompt to do this? I am working in C++ on a windows app.
    Basically, I am asking how to edit any/all Edit>Preferences by coding it or through command prompt when launching the pdf without having to do it manually.
        Much help would be appreciated. Thank you!

    If you are using URLConnection
    myURLConnection.setRequestProperty("pragma:","no-cache"Actually, the 'pragma' header is an HTP 1.0 (old) concept. The one for HTTP 1.1 is 'Cache-Control'. That said, you should always use both to support old/new browsers.
    You could also use the following headers :
    Expires, must-revalidate, proxy-revalidate etc...
    You could also implement a getLastModified() method in your servlet, which returns the time (as a long) at which the content was last changed. The server could then intercept 'If-Modified-Since' requests.
    Keep in mind that, because of several notorious browser bugs ( http://www.web-caching.com/browserbugs.html ), it can be difficult to effectively turn off caching across the board.

  • Code added to document when opening in Dreamweaver

    When I open a .html document in dreamweaver it is mysteriously adding code (<a href="#"></a>) to my list item - see below
    <li><a href="#">Systems
    </a><table><tr><td><ul>
        <li>
        <a href="#"></a><a href="gatso.html">Gatsometer</a></li>
        <li><a href="pips.html">PIPS Technology</a></li>
        <li><a href="speedar.html">Speedar</a></li>
        <li><a href="aspect.html">Aspect</a></li>
        </ul>
    </td></tr></table></a>
    </li>
    When I open the same document in Text Wrangler it looks as it should - see below
    <li><a href="#">Systems
    </a><table><tr><td><ul>
        <li><a href="gatso.html">Gatsometer</a></li>
        <li><a href="pips.html">PIPS Technology</a></li>
        <li><a href="speedar.html">Speedar</a></li>
        <li><a href="aspect.html">Aspect</a></li>
        </ul>
    </td></tr></table></a>
    </li>
    This has suddenly started hapening and is very strange. It didn't used to happen. Does anyone know why?

    Jasprizza wrote:
    When I open the same document in Text Wrangler it looks as it should - see below
    <li><a href="#">Systems
    </a><table><tr><td><ul>
        <li><a href="gatso.html">Gatsometer</a></li>
        <li><a href="pips.html">PIPS Technology</a></li>
        <li><a href="speedar.html">Speedar</a></li>
        <li><a href="aspect.html">Aspect</a></li>
        </ul>
    </td></tr></table></a>
    </li>
    Without seeing the rest of the page, it's impossible to judge, but the code you have posted here is invalid.
    Apart from the fact that it seems very strange to put an unordered list inside a single-cell table nested in the list item of another list, you have a closing </a> tag without a matching opening one on the penultimate line (it's after  the closing </table> tag).
    No wonder Dreamweaver is getting confused.

Maybe you are looking for