@@ -160,7 +160,7 @@ public Response post(@FormParam("package-uri") String packageURI, @HeaderParam("
160160 if (log .isDebugEnabled ()) log .debug ("Downloading package stylesheet from: {}" , stylesheetURI );
161161 String stylesheetContent = downloadStylesheet (stylesheetURI );
162162
163- installStylesheet (Paths .get (getServletContext ().getRealPath ("/static" )).resolve (packagePath ).resolve ("layout.xsl" ), packagePath , stylesheetContent , endUserApp );
163+ installStylesheet (Paths .get (getServletContext ().getRealPath ("/static" )).resolve (packagePath ).resolve ("layout.xsl" ), stylesheetContent , endUserApp );
164164
165165 // 4. Regenerate master stylesheet
166166 regenerateMasterStylesheet (endUserApp , pkg );
@@ -344,20 +344,12 @@ private void installOntology(EndUserApplication app, Model ontologyModel, String
344344 /**
345345 * Installs stylesheet to <samp>/static/<package-path>/layout.xsl</samp>
346346 */
347- private void installStylesheet (Path stylesheetFile , String packagePath , String stylesheetContent , EndUserApplication endUserApp ) throws IOException
347+ private void installStylesheet (Path stylesheetFile , String stylesheetContent , EndUserApplication endUserApp ) throws IOException
348348 {
349349 Files .createDirectories (stylesheetFile .getParent ());
350350 Files .writeString (stylesheetFile , stylesheetContent );
351351
352352 if (log .isDebugEnabled ()) log .debug ("Installed package stylesheet at: {}" , stylesheetFile );
353-
354- // Purge stylesheet from frontend proxy cache to clear any cached 404 responses
355- // String stylesheetURL = "/static/" + packagePath + "/layout.xsl";
356- // if (endUserApp.getFrontendProxy() != null)
357- // {
358- // if (log.isDebugEnabled()) log.debug("Purging stylesheet from frontend proxy cache: {}", stylesheetURL);
359- // getSystem().ban(endUserApp.getFrontendProxy(), stylesheetURL, false);
360- // }
361353 }
362354
363355 /**
@@ -387,13 +379,6 @@ private void regenerateMasterStylesheet(EndUserApplication app, com.atomgraph.li
387379 // Regenerate master stylesheet (XSLTMasterUpdater works with paths)
388380 XSLTMasterUpdater updater = new XSLTMasterUpdater (getServletContext ());
389381 updater .regenerateMasterStylesheet (packagePaths );
390-
391- // Purge master stylesheet from cache
392- // if (app.getFrontendProxy() != null)
393- // {
394- // if (log.isDebugEnabled()) log.debug("Purging master stylesheet from frontend proxy cache: {}", com.atomgraph.linkeddatahub.Application.MASTER_STYLESHEET_PATH);
395- // getSystem().ban(app.getFrontendProxy(), com.atomgraph.linkeddatahub.Application.MASTER_STYLESHEET_PATH, false);
396- // }
397382 }
398383
399384 /**
0 commit comments