Skip to Content

A primitive implementation of AppCacheBuster

Hello Experts,

Due to limitations I'm working with J2EE 7.01 and I cannot use standard AppCacheBuster which comes with ABAP stacks or newer Java stacks.

I implemented a simple mechanism for AppCacheBuster:

1) Renamed index.html to index.jsp (html meta tags that prevent cache works for IE but doesn't always work for Chrome). Renaming from HTML to JSP solves the problem.

2) Added a unique string (that will be changed for every new version in my index.jsp)


window.appVer = "employeeAttendance20150513134900";



sap.ui.localResources(window.appVer + ".model.service.EmpAttendanceService");

sap.ui.localResources(window.appVer + ".util.Formatter");

sap.ui.localResources(window.appVer + ".constants.ColumnIndex");


3) When I init my views, I use the unique string:

sap.ui.jsview(window.appVer + ".main", {

getControllerName : function() {

return window.appVer + ".main";


4) Whenever I need to load a new version I rename the folder that contains the code (see folder.jpg)

This seems to be working.

Does someone see downsides of using this solution?



folder.jpg (22.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on May 14, 2015 at 05:32 AM

    BTW, i am just curious - whats so special about AppCacheBusterFilter so it can't be ported to 7.01? it is java 1.4 afair?



    import java.util.*;

    import java.util.logging.Level;

    import java.util.logging.Logger;

    import java.util.regex.Matcher;

    import java.util.regex.Pattern;

    import javax.servlet.*;

    import javax.servlet.http.HttpServletRequest;

    import javax.servlet.http.HttpServletResponse;

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.