kentico / mvc Goto Github PK
View Code? Open in Web Editor NEWDevelopment of ASP.NET MVC 5 web applications with Kentico 11
Home Page: https://docs.kentico.com/k11/developing-websites/developing-sites-using-asp-net-mvc
License: MIT License
Development of ASP.NET MVC 5 web applications with Kentico 11
Home Page: https://docs.kentico.com/k11/developing-websites/developing-sites-using-asp-net-mvc
License: MIT License
Kentico 12 sample code for dancing got can i get because earlier version not working in kentico 12
As soon as I enable the Preview module in an MVC site, client cache settings are completely ignored.
To reproduce:
Cache-Control: private
<staticContent>
<clientCache cacheControlCustom="public" cacheControlMaxAge="1.00:00:00" cacheControlMode="UseMaxAge"/>
</staticContent>
Cache-Control: public,max-age=86400
But it doesn't.
After that, caching works as expected for static content.
I've traced this back to line 59 in PreviewFeatureModule.cs.
context.Response.Cache.AddValidationCallback(ValidateCacheItem, null);
Commenting that line solves the issue. I'm not sure why that line is even there.
For static content, the event handler being registered is never hit.
For example, if a new column is added to the CustomerInfo class (i.e. CustomerTitle) then there is no way of using the Kentico.Ecommerce package to access those new columns and expose them through the Customer model.
It could be useful to amend the models to set the "OriginalCustomer" value to be a protected property which can be access by classes inheriting from Customer. This would allow us to create a custom Customer model which includes our extra columns.
This pattern could be applied to the other models in the various packages.
Original issue: Kentico/Home#2 submitted by https://github.com/mdaniels-chl
Went through the steps for both Learning Kit and Dancing Goat and both get an error.
project.json
is deprecated and SDK style projects are supported in .NET Standard, .NET Core and .NET Framework projects.
SDK style projects also provide
*.csproj
files in VS (no need to unload, fewer merge conflicts through file globbing)PackageReference
Nuget package manifest syntax (the recommended approach going forward)This could make it easier for developers external to Kentico to contribute to this repository.
Convert all the .csproj
files in this repo to SDK project syntax
There are tools to help with this conversion
https://github.com/hvanbakel/CsprojToVs2017
And Nate McMaster blogged about the process
https://natemcmaster.com/blog/2017/03/09/vs2015-to-vs2017-upgrade/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.